Directions
Jump to navigation
Jump to search
Directions is a deque-based 2D esolang.
The PC moves in various directions on tiles(#
). If it turns, nothing happens. If it didn't, an instruction will be executed.
The tile which the PC comes from will be ignored.
Priority:
5 4 3 4 5 4 2 1 2 4 3 1 1 3 4 2 1 2 4 5 4 3 4 5
If there is a # on the position marked 1, it will ignore those on 2345. If not, try on 2.
If there are multiple tiles of the same priority, The direction depends on the box.
Take the remainder of dividing the box by the number of tiles. Rotate clockwise from the north and count the tiles. If the count matches, go to that tile.
If there are no tiles, the program terminates.