Solving a maze using Bidirectional BFS Algorithm.
The following code implements Bidirectional BFS algorithm to find the shortest path from the Start point to the Target point in the maze.
- The maze is implemented using cells and OpenGL.
- The maze size can be changed; but the time to find the shortest path increases
- The solution is based on the BFS and OpenGL code of the AI course.
- The IDE used is Visual Studio 2019 Community
- Maze Initialization
- Set Start and Target points
- Run BFS from the Start point and Target point at the same time.
- When the BFS runs find an intersection gray point the BFS run is done.
- The program restores the shortest path by traversing the parent cells