The Wumpus World Game is a Python implementation of the classic Wumpus World environment, where the agent navigates a grid-based world filled with dangers and treasures.
- Grid-based environment.
- Random generation of game elements: gold, pits, and Wumpus.
- Character movement with perception of nearby dangers.
- Shooting mechanism to eliminate the Wumpus.
- Scoring system based on collected gold and actions taken.
- Graphical User Interface (GUI) using Pygame library.
-
Objective: Collect all the gold and return to the starting position without falling into pits or being eaten by the Wumpus.
-
Grid Environment: Explore a grid-based world where each cell may contain gold, pits, walls, or the Wumpus.
-
Elements:
- Gold: Collect gold scattered throughout the grid.
- Pits: Beware of hidden pits; falling into one results in game over.
- Wumpus: The menacing creature can be eliminated with arrows; otherwise, moving adjacent to it results in game over.
- Arrows: Limited arrows can be used to shoot and eliminate the Wumpus.
-
Perceptions:
- Feel a breeze if a pit is adjacent.
- Detect the stench of the Wumpus if it's nearby.
-
Scoring:
- Earn points for collecting gold.
- Bonus points for eliminating the Wumpus.
- Point deductions for falling into pits and movements.
-
Winning and Losing:
- Win: Collect all the gold and safely return to the starting position.
- Lose: Fall into a pit, encounter the Wumpus without eliminating it, or run out of arrows.
-
Clone the repository to your local machine:
https://github.com/2pa4ul2/Wumpus-World-Problem-AI.git
-
Install the required dependencies:
pip install pygame
-
Run the game:
python main.py