Minifuck-2D

From Esolang
Jump to navigation Jump to search

Minifuck-2d is a two-dimensional programming language invented by User:Wh1teWolf Dec 2, 2009. It has only four commands and it should be turing-complete. It is inspired by Minimal-2D

Commands

Command Description
< Move to previous bit in memory array. (if currently on the first bit do nothing.)
. Move to next bit and invert it, output next 8 bits if at least one of them is non-zero, else input.
! Move to next bit and invert it, skip next instruction if zero. (Comments and whitespace counts as an instruction.)
@ Turn right.

Examples

Infinite loop

!<!@@
   @@

Cat

!<!@!<.<.! ! ! @
   @ ! ! ! ! ! @

See Also