Skip to content

2pa4ul2/Wumpus-World-Problem-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wumpus World Game AI

Overview

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.

Features

  • 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.

Rules of the Game

  1. Objective: Collect all the gold and return to the starting position without falling into pits or being eaten by the Wumpus.

  2. Grid Environment: Explore a grid-based world where each cell may contain gold, pits, walls, or the Wumpus.

  3. 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.
  4. Perceptions:

    • Feel a breeze if a pit is adjacent.
    • Detect the stench of the Wumpus if it's nearby.
  5. Scoring:

    • Earn points for collecting gold.
    • Bonus points for eliminating the Wumpus.
    • Point deductions for falling into pits and movements.
  6. 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.

Installation and Usage

  1. Clone the repository to your local machine:

    https://github.com/2pa4ul2/Wumpus-World-Problem-AI.git
  2. Install the required dependencies:

    pip install pygame
  3. Run the game:

    python main.py

Screenshots

Start Page

image

Game Page

image

image

Releases

No releases published

Packages

No packages published

Languages