Log In  

Cart #genakizori-7 | 2022-04-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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.


  • +: 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.


P#109455 2022-03-31 13:56 ( Edited 2022-04-03 18:26)


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.

P#109472 2022-03-31 15:58 ( Edited 2022-03-31 16:20)

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.

P#109522 2022-04-01 16:34 ( Edited 2022-04-01 16:47)

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***.


P#109533 2022-04-01 21:27 ( Edited 2022-04-01 21:28)

@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?

P#109567 2022-04-02 08:41 ( Edited 2022-04-03 06:47)

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 !

P#109661 2022-04-04 04:23


hehe divide, doesn't like decimals

P#109726 2022-04-05 05:59

[Please log in to post a comment]