Skip to content

The logic behind this Wumpus World game works using both Python and Prolog. Python handles the interface and overall flow, while Prolog is used to process logical reasoning and decision-making based on rules.

Notifications You must be signed in to change notification settings

RajtoDeveloper/Wumpus_world_logical_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Wumpus World logical Agent Game

This project is a visual and interactive implementation of the Wumpus World AI problem, built using Python (Tkinter GUI) and Prolog (via pyswip). It demonstrates how logical agents can reason under uncertainty to safely navigate a dangerous environment in search of gold.


๐ŸŽฎ Game Concept

  • The world is a 4x4 grid.
  • You are an agent starting at cell (1,1).
  • Your mission: Find the gold and return safely to the starting cell.
  • The world contains dangerous pits and a Wumpus monster.
  • The game uses percepts such as:
    • Breeze: Pit nearby
    • Stench: Wumpus nearby
    • Glitter: Gold is in the current cell
    • Scream: Wumpus has been killed

๐Ÿš€ Features

  • ๐Ÿง  Prolog-powered reasoning: Logic-based movement, decision-making, and sensory updates
  • ๐ŸŽจ Custom Tkinter GUI: Beautiful and intuitive game board with modern styling
  • ๐Ÿ“œ Game rules display: Easy-to-read popup for first-time players
  • ๐Ÿงฉ Agent Actions:
    • Move to adjacent cells
    • Shoot arrow (one shot)
    • Grab gold
    • Climb out of cave
  • ๐Ÿ“ Real-time action log: Displays your move history
  • ๐ŸŽฏ Scoring System:
    • Start with 30 points
    • Each move costs -1 point
    • Shooting arrow costs -10
    • Grabbing gold: +500
    • Game over if you fall in a pit or meet the Wumpus!

โš™๏ธ Requirements

๐Ÿ“ฆ Python Packages

Install the following with pip:

pip install pyswip pillow

About

The logic behind this Wumpus World game works using both Python and Prolog. Python handles the interface and overall flow, while Prolog is used to process logical reasoning and decision-making based on rules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages