The maze
Virtual maze, stored in SRAM
- 128 ×128 grid
- Occupies 0:3FFF of memory
- 0XY are maze addresses
- X is the ant’s horizontal position (7 bits)
- Y is the ant’s vertical position (7 bits)
- Each memory location says
- 00000001 ? no wall
- 00000010 ? North wall
- 00000100 ? West wall
- 00001000 ? South wall
- 00010000 ? East wall
- 00100000 ? exit
- Corridors are much larger than ant