Fuckbrain
Jump to navigation
Jump to search
FuckBrain is an esoteric programming language inspired by Brainfuck, designed to be chaotic and confusing. It operates on a tape of memory cells and a pointer, but includes commands that introduce randomness and chaotic behavior. The language is Turing-complete and intended for experimentation, puzzles, and obfuscated code challenges.
Made by ChatGPT.
Basics
- Memory: Infinite tape of integer cells, initialized to 0.
- Pointer: Starts at the first cell.
- Input/Output: ASCII-based.
- Commands are single characters, similar to Brainfuck, but with added chaotic effects.
Commands
Command | Action |
---|---|
f | Move pointer forward by 1 |
b | Move pointer backward by 1 |
+ | Increment current cell by 1 |
- | Decrement current cell by 1 |
* | Multiply current cell by 2 |
/ | Divide current cell by 2 (integer division) |
p | Print current cell as ASCII |
i | Input ASCII into current cell |
[ | Start loop if current cell ≠ 0 |
] | End loop |
! | Randomly swaps current cell with another cell on the tape |
? | Random jump: 50% chance to skip to matching ] |
Flow and Rules
- Loops: Same as Brainfuck; `[ ... ]` repeats until current cell is 0.
- Randomness: Commands `!` and `?` introduce chaotic behavior.
- Cell values wrap around at 256 (like unsigned 8-bit integers).
Example
Printing "A" (ASCII 65):
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++p
A chaotic alternative using multiplication:
++++++++*+++++++++p
Applications
- Puzzles and obfuscated programming challenges.
- Fun experiments with randomness in computation.
- Learning and understanding low-level memory manipulation concepts.