User:PkmnQ/Wrong Wrap

From Esolang
Jump to navigation Jump to search

Wrong Wrap is an esolang derived from an attempt to create a 2D language where NOP is the only instruction.

Execution

In programs, the only thing that matters is the length of each line. Non-newline characters are all interpreted as NOPs. We'll take this example program:

.....
.......
.........

Each line is copied infinitely like this:

11111222223333344444555...
11111112222222333333344...
11111111122222222233333...

The instruction pointer starts at the top left corner, travels down and to the right, and wraps vertically, so the instruction pointer would follow this path:

\11\1222223333344444555...
1\111112222222333333344...
11\11111122222222233333...

The instruction pointer can go from a lower numbered copy to a higher numbered copy with no problem:

\11\12\2223333344444555...
1\11\112222222333333344...
11\11\11122222222233333...

However, when the instruction pointer attempts to go from a higher numbered copy to a lower numbered copy, the instruction pointer warps you to the equivalent location in the higher numbered copy:

\11\12\22233333444\4555...
1\11\11\22222233333!344...
11\11\11!22222222\33333...