Haskell Wumpus World Problem

Job ID: 36785073

Budget: $10 – $30 USD

General Introduction
The Wumpus World is an artificial 4X4 dark cave consisting of 16 rooms connected through passageways. There is an agent initially located at location (1,1). Apart from the agent, there is also a Wumpus, a heap of gold and 3 pits in the rooms. The Wumpus, heap of gold and pits can possibly be collocated on the same room but cannot be located at location (1,1).

Only the agent can move from one room to another. The agent can move forward or turn left/right 90 degrees. The agent is also equipped by a bow and an arrow which can be shot to kill the Wumpus. However, the agent cannot see anything except the glitter of the gold when he/she enters the room containing the gold. The agent can smell the stench of the Wumpus if his room is adjacent to the Wumpus’ room. The agent can also feel the breeze if he/she is adjacent to one of the pits. When the agent manages to kill the Wumpus by firing the arrow, the Wumpus will scream which can be heard anywhere in the Wumpus world. When the agent hits the wall, he/she will feel the bump.

The agent will die if falling to a pit or entering the Wumpus’ room. The agent has to try grab the gold and leave the cave from his/her initial position.
Related categories: PHP Haskell