Graph Maze Game is a Python-based game built with Pygame where the player navigates a graph structure to find hidden treasure before a snake bot does. The game ends when either the player or the snake reaches the treasure.
- Find the treasure before the snake bot does.
- If the player reaches the treasure first, they win.
- If the snake bot reaches the treasure first, the player loses.
- Graph-based Maze: The game is structured as a graph where nodes represent positions and edges represent possible movements.
- Different Difficulty Levels: Players can choose from Easy, Normal, and Hard difficulty, each affecting the size and complexity of the graph.
- AI Opponent: The snake bot navigates the graph using either Depth-First Search (DFS) or Breadth-First Search (BFS), chosen randomly.
- User-friendly Interface: Main menu, difficulty selection, rules menu, and game over screen are implemented.
W- Move upA- Move leftS- Move downD- Move right
- Main Menu: Choose to start the game, view rules, or exit.
- Difficulty Selection: Select difficulty level (Easy, Normal, or Hard).
- Gameplay: Navigate through the graph and race the bot to the treasure.
- Rules Menu: View instructions on how to play.
- End Screen: Displays the win/loss message.
- Launch the game and navigate through the menus.
- Choose your desired difficulty level.
- Move through the graph using
W,A,S,Dkeys. - Reach the treasure before the snake bot does.
- The game ends once the treasure is found.
- Python 3
- Pygame
- Install Python 3 if not already installed.
- Install Pygame using:
pip install pygame
- Run the game script:
python graph_maze_game.py
- Implement different AI strategies for the bot.
- Add more complex graph structures.
- Introduce power-ups or obstacles to increase gameplay variety.
Enjoy the game!
