Wednesday, January 25, 2012

Wumpus World

I've just committed a working version of Wumpus World, an AI example covered in in the book "Artificial Intelligence : A Modern Approach". It's not complete yet, as I still need to add the ability to shoot arrows and to clumb out of the cave. But the rest of it is there and working.

When the game first starst all the cells are greyed out. As you walk around they become visible. The cave has pitts, a wumpus and gold. When you are next to a pittt you will feel a breeze, when you are next to the wumpus you will smell a stench and see glitter when next to gold. The sensor icons are shown above the move buttons. If you walk into a pitt or the wumpus, you die.

Here are the slides that I used in my presentation for Wumpus World, along with a demo, at Judcon India 2012. The code will be part of 5.4 beta 2 going out today/tomorrow.

A more detailed overview of Wumpus World can be found here.



  1. Woow... your article reminds me of the AI Lab exam I gave about ten years ago at University!
    I did it using Java and Jess...
    maybe I could try to rewrite it using Drools ;)
    Thank you for sharing.

  2. I'm still working on logs of improvements for the example. Improving the graphics, adding more of the logic from the game. I'm just in the process of moving more of the java code into pure drl. I'll also work on client and server separation, so that people can build pure rule base clients with only the sensors to assist. Once I finish it should make a good learning example for AI students. I've seen a few of the Jess ones around,, hopefully all the professors will move to Drools :)

  3. i want wumpus world prolog souce code......plxxx help me
    if ant 1 have the souce code please send me on this email id

  4. "i want wumpus world source code in prolog...i"
    A simple google returns numerous entries for this: