A wall is a maze grid element that blocks movement through an adjacent position. Mazes distinguish walls from paths, entrances, and treasures. section 9.1
Represent walls concretely when generating or solving an image-based maze:
- Encode each wall as a grid position that is not traversable. section 9.1
- Render walls as black pixels in an RGBA PNG image. section 9.1.2
- Store the wall color in a palette and compare image pixels against it during exploration. section 9.3.1
Wall detection
A solver can inspect each pixel and classify it as a wall when its RGBA value equals the palette's wall color. section 9.3.1
Figure 9.1 Example of a small maze with a treasure (exit) on the edge
View a small maze showing walls as the boundary structure around paths, including an entrance and treasure. section 9.1
