Giter Site home page Giter Site logo

wumpus-world-q-learning's Introduction

Wumpus-World-Q-Learning

About the game

Wumpus World is the representation of a simple world where an explorer searches a dark, dangerous cave in search for a bounty of gold. In this cave, there are two threats to the explorer’s life: falling in bottomless pits (P) and being slain by the Wumpus (W). The explorer’s goal is to find the gold (G) then exit safely by backtracking through the cave. Typically, the cave is represented by a 4×4 grid or 16 rooms. Each room will have indicators that can be detected by the explorer. If the explorer smells a stench (S) that means that Wumpus may be in an adjacent tile. If the explorer feels a breeze (B) that means that a bottomless pit may be in an adjacent tile. If the agent sees glitter that means that there is gold in the current room and upon retrieval of the gold, the explorer is allowed to leave the cave. While exploring the cave, the explorer gathers knowledge and acts according to the gathered knowledge; this type of behavior makes the explorer a knowledge-based agent.

map


Playing the game

In the following code, we use q-learning algorithm to solve this game. At the end, agent will be able to find the gold.

Information needs

  • Number of rows and columns
  • Starting point
  • Wumpus, gold and pits points
  • Hyperparameters (learning rate, discount rate, epsilon)

Q-Learning Process

process

wumpus-world-q-learning's People

Contributors

mehrabkalantary avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.