ROTfuck

From Esolang
Jump to navigation Jump to search

ROTfuck is a variation of brainfuck by User:PythonshellDebugwindow.

Commands

Command Description
> Move the pointer to the right
< Move the pointer to the left
+ Increment the memory cell under the pointer
- Decrement the memory cell under 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 under the pointer is 0
] Jump back to the matching [ if the cell under the pointer is nonzero

Automatic command rotation

Every time an instruction is executed, all non-comment characters in the source code are rotated right once along +-><,.[], meaning + -> -, - -> >, ..., ] -> +.

Examples

Hello, World! Created by User:Apollyon094

<.>]-,]>]>,][,.->].,[,+-+<..[[<>]><.-[,+<>->-<+<>]<[,.,-+<>][[+<++,.-+-.

One-character cat

,[