BrainF8 (BrainF..k)
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.
Commands
+
: 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 adjacentdark _
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)
Controls
- 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.
Enjoy!
You are in good company, @noSpaces102:
https://www.lexaloffle.com/bbs/?tid=40046
https://www.lexaloffle.com/bbs/?tid=3688
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.
The problem with the game crashing when you try to change a [NIL] character is still being worked on.
Also, I didn't know that the number in a memory cell should be capped to 0 and 255. Updating now.
EDIT: @dw817 Update made.
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***.
@dw817 Update made. I brought back sound effects for each of the commands, I wrote code to prevent [NIL] commands and also new command to make up for how the SPACE used to work: ;.
Any other suggestions?
Indeed ! I was hoping you would add an INSERT/DELETE ability but this is fine, @noSpaces102. Maybe add LOAD/SAVE ability.
Yet this works quite well, Gold star achievement !
14,14,14,14,14,8,14,4,4,4,8,1,1,1,1,1,1,1,11,1,1,1,1,1,1,6,5,5,5,6,4,2,4,2,5,5,3,7,4,6,5,2,4,3,7,4,6,4,3,5,3,7,4,4,2,5,1,7,1,4,9,11,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
hehe divide, doesn't like decimals
[Please log in to post a comment]