Maze Generator and Solver



This particular algorithm generates a random maze where there is a unique path between any 2 cells.
Each cell is defined with a 4 bit integer, representing the 4 walls. A fifth bit defines whether a cell has been “visited” or not. Currently there is some redundancy in that each shared wall is defined twice - once in each cell.

2 Comments

  1. Evalsselo:

    мда… вот те раз !

Leave a comment