In this repo I share my implementation of making mazes with C++, with SFML (version 2.4.2) as the graphic library. In the maze, each cell is represented by a struct called Node
, with basic property (walls
) of telling what sides of that cell are "blocked".
I will attempt to implement algorithms related to maze generation and maze solving.
This algorithm is used to generate maze. I followed the description in this Wikipedia page. Here is the preview of my program:
This algorithm is used to generate maze. I followed the description in this Wikipedia page and on this blog. Here is the preview of my program:
This algorithm is used to solve maze. The maze generation is done using backtracking algorithm (but not displayed). I followed the description on this Wikipedia page. Here is the preview of my program:
This algorithm is used to generate maze. I followed the description in this Wikipedia page. Here is the preview of my program: