We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
2DWays
Jump to navigation
Jump to search
2dWays is a Brainfuck derivative made by User:Cordership that has a 2D tape grid instead of BF's 1D tape.
Instructions
Here are the instructions:
| Command | Meaning |
|---|---|
> |
Move pointer right. |
< |
Move pointer right. |
^ |
Move pointer right. |
v |
Move pointer right. |
/ |
Increment the memory cell at the pointer. |
\ |
Decrement the memory cell at the pointer. |
. |
Output a number from the memory cell at the pointer as an ASCII character. |
! |
Output a number from the memory cell at the pointer as an integer. |
# |
Store the memory cell at the pointer in the pointer. |
$ |
Duplicate the memory cell at the pointer , one copy goes in the pointer, the other stays in that memory cell. |
, |
Get user input and store it in the memory cell at the pointer. |
[ |
If the memory cell at the pointer is zero, skip past the corresponding ]. |
] |
If the memory cell at the pointer is nonzero, jump back to the corresponding [. |
[int] |
Set the memory cell at the pointer to a number. |
"[string]" |
Set the memory cell at the pointer to a string. |
@ |
End program. |
+ |
Add the current memory cell with the pointer, then store it in the current memory cell. |
- |
Subtract the current memory cell from the pointer, then store it in the current memory cell. |
* |
Multiply the current memory cell with the pointer, then store it in the current memory cell. |
/ |
Divide the current memory cell by the pointer, then store it in the current memory cell. |
% |
Store the remainder of the integer division current memory cell/pointer in the current memory cell. |
` |
Exponentiate the current memory cell to the pointer, then store it in the current memory cell. |
| |
Store the pointer's contents in the current memory cell. |
Examples
Hello, World!
"!dlroW ,olleH"[.]@
Infinite loop
v[<^>v]
A+B problem
,,$+!