Brainfuck 3D

From Esolang
Jump to navigation Jump to search

Brainfuck 3D

Brainfuck 3D is a esolang where programs are designed to work in 3D. This means you need to program multiple layers in order to use 3D commands. Every layer is a block of code where 2D commands allowed.

Basic Brainfuck Instructions

Command Description
> Move the pointer to the right
< Move the pointer to the left
+ Increment the memory cell at the pointer
- Decrement the memory cell at the pointer
. Output the character signified by the cell at the pointer
, Input a character and store it in the cell at the pointer
[ Jump past the matching ] if the cell at the pointer is 0
] Jump back to the matching [ if the cell at the pointer is nonzero

Advanced Multi-dimensional Instructions

Command Description
& Change interpreter execution direction to left
$ Change interpreter execution direction to right
% Change interpreter execution direction to down...top
# Change interpreter execution direction to top...down
@ Go to next 3D layer at current coordinates
? Go to previous 3D layer at current coordinates