2-ill

From Esolang

Jump to: navigation, search

2-ill is designed by User:Zzo38, to be something like 2L but a bit different.

The memory is a tape (similar to Brainfuck) infinite on both directions and starts all zero, each cell can be only value 0 or 1, no other values are possible.

The commands are:

  • $ indicates start position of program, going east. If hit, it has no effect.
  • @ turns program pointer clockwise if value at pointer is 1, or counter-clockwise if is 0.
  • # has different effects depending on direction of program pointer:
    • North = output bit at tape pointer, skip 2 program cells
    • South = input bit, store at tape pointer, skip 2 program cells
    • West = move tape pointer 1 space backwards, skip 2 program cells
    • East = toggle bit at tape pointer and then move tape pointer 1 space forwards, skip 2 program cells
  • Anything else does nothing and can be used for comments.

Program stops when program pointer falls off the edge of the world.

Example:

'------'
'@  @ @'
'   @@ '
'@#$ @ '
'   #  '
'      '
'  @ @ '
'  @@@ '
'@    @'
'------'

Another example:

@@@
@$@
 | 
 # 
 | 
@?@
@@@
Personal tools