Hangover

From Esolang
Jump to navigation Jump to search

Hangover, named by the constant spinning of its counter, is a 2d esoteric programming language created by User:Yayimhere. It uses only two commands.

Semantics

Hangover has nowhere to store memory. As such, it must be stored in the program. It has two commands(three if you count the NOP):

  • #: Rotate 90º clockwise, and move forward one command, but wait for executing it. Note what coordinate changed, and the one that did not, and say that the one that changed has 1 bit, and the one that did not has a 0 bit. Then NAND every bit in the coordinates of the pointer with their corresponding bit, and set the cell at the produced x, y coordinates to the command landed one *after* the command pointer move. then execute that command.
  • /: A simple mirror, AsciiDots style.
  • *: NOP.

The program halts when a NOP is executed on the uppermost edge of the original program. Note that every empty space must hold a NOP command. The grid expands in every direction infitely, but the point starts in the upper rightmost corner of the program.