Brainbash


Timeout: Optimize:

Code representation

Output


Mnemonics

CodeEffect
[*-*+]Inrement the cell opposite the current by the amount in the current cell. Resets the current cell to zero.
*[-][*-*+]Moves the current cell's value to the opposite cell (overwrites)
[[->+~+*]>-~[-*+*]>~>]Creates a range from N (current cell) to zero. Uses the bottom strip as a workplace.
[<]>>[<[->+<]>>]Starting at the leftmost cell, adds cells until a zero cell is met.
[>]<[[->+<]<]>Starting at the rightmost cell, shift cells over one cell to the right.