On the Subject of Langton’s Anteater

I’M SO FULL FROM INSECTS YUM

This module consists of a 5×5 board of black and white cells with an ant in the middle, facing North.

Whenever the ant makes its first move, an anteater will spawn on the middle cell, also facing North. The anteater will then start moving (with the same speed as the ant) when the ant makes its second move. A move consists of turning, changing the colour of a cell, then moving, in that order.

Both the ant and the anteater make moves using these rules:

  • If the cell underneath the ant or the anteater is white, it will turn 90 degrees clockwise, change the cell’s colour to black, then move forwards one cell.
  • Otherwise, if the cell is black, it will turn 90 degrees anticlockwise, change the cell’s colour to white, then move forwards one cell.

If the ant or the anteater make a move that would take them off the board, they will wrap around to the other side of the board.

To solve this module, press the cell on which the anteater will eat the ant (i.e. the cell where the ant and anteater will collide). Pressing an incorrect cell will result in a strike.