WII2D

From Esolang
Jump to navigation Jump to search

WII2D is a 2D esolang created by Cortex. Its name stands for "Why Is It 2D?" It was clearly inspired by Befunge. It is probably even harder to compile than Befunge. If it goes over the top, under the bottom, et cetera of the grid, wrap around.

Commands

Character What it does
^v<> Move north, south, west, or east.
| Reverse the direction of the pointer.
@ Move the pointer to the position above the closest other @ command.
0123456789 Set the accumulator to the digit used.
+-*s/ Increment, decrement, double, square, or half the accumulator
~ Print the accumulator as an ASCII character.
? Move in a random direction.
. End the program.
! Mark where to position the pointer at at the start of the program (start at the position above the position of the ! command). When the program starts, the pointer is moving northward. Exactly one of these must be used each program.
# Nop.

Examples

Hello, World!

>8s++++++++~9+s+~+++++++~~+++~9+**++++~8**~*9+s-------------~9+s+++++++++++~+++~9+s++++++++~9+s~4s*+~.
!

Implementations

A Python interpreter by User:Bangyen.