What is BrainF..k?
BrainF..k is a programming language consisting of only 8 symbols for commands. BrainF..k also has memory cells, where you can store numbers. Every memory cell starts at 0 and will loop around if over 255 or under 0.
+: add 1 to the current memory cell.
-: subtract 1 from the current memory cell.
>: change the current memory cell to the memory cell on the right.
<: change the current memory cell to the memory cell on the left.
[: start a loop that will continue as long as the current memory cell is bigger than 0.
]: end a loop that will continue as long as the current memory cell is bigger than 0.
,: set the current memory cell to the player input.
.: output the current memory cell as well as its corresponding character. (wip)
Extra Commands (only in this version of BrainF..k)
dark _: (default command) terminates the program unless code follows it, in which it skips over itself and adjacent
dark _s to the next command.
#: toggle running the program at 2x speed.
/: toggle running the program at 6x speed.
^: set the maximum number for player input and randomisation to the current memory cell.
light _: set the minimum number for player input and randomisation to the current memory cell.
;: wait. (it does nothing)
- Up Arrow, Down Arrow, Left Arrow and Right Arrow to move.
- X to run the program.
- C, Left Arrow and Right Arrow to change current command.
- D to save project to clipboard.
- Ctrl+V + Ctrl+R to load project.
You are in good company, @noSpaces102:
In starting if you press the UP or DOWN arrow key, it crashes.
Also you can create an infinite loop with this:
/+[+] and it shouldn't be if it is following the rules of the original BrainF***. The highest number should be 255 which wraps back to zero. The number should not reach 256 and higher as it does now.
So the code I wrote should loop 255-times before exiting.
Definitely better, @noSpaces102. OK, music should be optionally off although adding sound effects for selecting different commands would be fine. You know little clicks and beeps and stuff.
Perhaps holding down 🅾️ to insert/delete characters since merely pressing ⬆️ and ⬇️ gives you the desired command.
Reaching a SPACE (no command) could also terminate the code.
Here is more information on BrainF***.
hehe divide, doesn't like decimals
[Please log in to post a comment]