You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a Python maze generator and solver game built using the Pygame library. The game generates random mazes and allows the player to navigate through them using arrow keys or WASD keys. The maze generation is based on the Depth-First Search (DFS) algorithm, and the maze solving uses the Breadth-First Search (BFS) algorithm.
5
+
6
+
## Features
7
+
- Random maze generation using DFS algorithm
8
+
- Maze navigation by the player using arrow keys or WASD keys
9
+
- Maze solving using BFS algorithm
10
+
- Reset option to generate a new maze
11
+
- Timer to record the time taken to solve the maze
12
+
- Visually appealing graphics and animations
13
+
14
+
## How to Play
15
+
1. Run the script `maze_game.py` using Python (requires Python 3.x and Pygame library).
16
+
2. The maze will be generated, and the player will start at the entrance.
17
+
3. Use the arrow keys or WASD keys to navigate through the maze.
18
+
4. Try to reach the exit point indicated by the green cell.
19
+
5. If you get stuck or want to generate a new maze, press the 'r' key to reset.
20
+
21
+
## Dependencies
22
+
- Python 3.x
23
+
- Pygame library (Install using `pip install pygame`)
24
+
25
+
## Controls
26
+
- Arrow keys or WASD keys: Move the player
27
+
- 'r' key: Reset the maze
28
+
29
+
## Acknowledgments
30
+
The maze generation algorithm is based on Depth-First Search (DFS), and the maze solving algorithm is based on Breadth-First Search (BFS).
0 commit comments