Prolog for Wumpus World

How to find a path in an unknown gridworld (5x5) in prolog? I have an initial position coordinate i.e 0,0. Note that (0,0) is relative, so the (0,0) could actually be in the center of this unknown world.

I have to recursively explore each block in the world, and only when the Agent enters the block can it receives information like breeze, stench etc. Then it must be able to do an inference, deciding the possible actions it could take.

Try something, see what happens.

Check out Markus Triska’s implementation of Wumpus World. When I was very new to Prolog, this is the program that made “thinking in states” click for me.