ROTfuck
Jump to navigation
Jump to search
ROTfuck is a variation of brainfuck by User:PythonshellDebugwindow.
Commands
Command | Description |
---|---|
+
|
Increment the memory cell under the pointer |
-
|
Decrement the memory cell under the pointer |
>
|
Move the pointer to the right |
<
|
Move the pointer to the left |
,
|
Input a character and store it in the cell at the pointer |
.
|
Output the Unicode character signified by 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 (after the instruction is executed) along +-><,.[]
, meaning +
-> -
, -
-> >
, ..., ]
-> +
.
Examples
Hello, World! Created by User:Apollyon094
<.>]-,]>]>,][,.->].,[,+-+<..[[<>]><.-[,+<>->-<+<>]<[,.,-+<>][[+<++,.-+-.
One-character cat
,[