Welcome to Maze Runner, a console-based maze traversal game implemented in C++. This game offers an exciting challenge where players navigate through randomly generated mazes of varying sizes, aiming to reach the exit within a time limit.
-
Clone this repository to your local machine.
-
Navigate to the directory containing the maze_runner.cpp file.
-
Compile the code using a C++ compiler, such as G++: (if you are in the same directory as maze_runner.cpp)
- Run the compiled executable:
- Choose a level by entering the corresponding number (1, 2, 3, or 4) or 'Q' to quit.
- Use the W, A, S, and D keys to navigate the player through the maze.
NOTE: Redirect to the master branch from the main branch to look for files and screenshots.
Dynamic Maze Generation: The game generates mazes of varying sizes based on the chosen level. Time Limit: Each level has a time limit within which the player must reach the exit. Obstacles: A percentage of maze cells are randomly designated as obstacles, adding challenge to navigation. Dijkstra's Algorithm: The game employs Dijkstra's algorithm to suggest the next move based on the shortest path to the exit. Colorful Interface: ANSI escape codes are used to add colour to the console interface, enhancing the gaming experience.
Look for the PNG for the screenshots of How the game works.