2D imensional
Jump to navigation
Jump to search
Commands
Cmd | What it does |
---|---|
>^<v | Moves right, up, left, down. |
S | Is the beginning location of the pointer. The pointer automatically starts moving right. |
px | Prints x. x can only be a number, a string, a variable, or a combination of the three. The pointer continues going right. |
n |-----| - - - - |-----| |
When the pointer encounters the box, the pointer goes into the box and does everything in the box until it reaches the outside of the box. Next, the pointer repeats the first step n-1 times. Then the pointer goes to the bottom right of the box and continues going right. |
i | Asks for input and stores it to x. The pointer continues going right. |
s3+1tox | Stores 3+1 to x. The pointer continues going right. |
def"function name" |-----| - - |-----| |
Defines a function with the name "function name". When the pointer reaches the box, it goes inside the box and does everything inside the box. The pointer goes to the bottom right of the box and continues going right. |
nnnn ifcondition( ) ( ) ( ) uuuu |
Does everything between the parentheses, "n"s, and "u"s if condition is true and the pointer is on the leftmost i. The pointer goes to the bottom right of the box and continues going right. |
Examples
Hello, world!
Sp"Hello, world!"
Truth machine
nnn Sifcondition(p1<) nn uuuifcondition(p0) uu