Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wumpus_MDP

This repository contains an implementation of a Markov Decision Process (MDP) for the classic Wumpus World game, utilizing Policy Iteration (PI) and Value Iteration (VI) to compute optimal policies and value functions. The project includes Python code, graphics, and tools to visualize or save value function heatmaps.

Features

  • Implementation of PI and VI algorithms for MDP optimization.
  • Includes graphical interface using Pygame.
  • Generates or saves value function heatmaps as images.

Visualizations

Optimal Value Function for Finding the Gold

Optimal Value Function Heatmap

Graphics

Wumpus World Graphics

Changing the Position of Agent and Training Again

Agent Position Change and Retraining

Getting Started

  1. Clone the repository: git clone https://github.com/yourusername/Wumpus_MDP.git
  2. Install dependencies: pip install numpy matplotlib seaborn pygame
  3. Run the main script: python main.py

Files

  • wumpus_mdp.py: Core MDP logic and value function plotting.
  • wumpus_gui.py: Pygame-based graphical interface.
  • main.py: Entry point to run the simulation.
  • graphics/: Directory for game assets.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages