Carlos144Green / Maze

Work in progress, This is a program that will generate a maze and then solve it with BFS.
0 stars 2 forks source link

Convert walls of maze to array of cells #31

Open Carlos144Green opened 2 years ago

Carlos144Green commented 2 years ago

Pretty much get all the walls of the maze and convert them into the cell class with the correct wall variable attached.

ie: cell.w =[1,1,0,0] index: 0=north wall 1=east wall 2=south wall 3=east wall

so that would mean that cell has a north and east wall but no south and west wall

Carlos144Green commented 2 years ago

next task, I plan on checking if the pixels adjacent to the wall of a cell are darker than the average pixel color of the maze. if they are I will apply a wall to that cell as mentioned above.