You are on page 1of 3

WumPus World : Rules Of Wumpus :

Rule 1:
If gold has been found, return true

RULE 2:
If wumpus is suspected to be above, adjust shooting direction to up and return true. if wumpus is suspected to be to the right, adjust shooting direction to right and return true if wumpus is suspected to be to the left, adjust shooting direction to left and return true if wumpus is suspected to be below, adjust shooting direction to down and return true if not enough evidence for wumpus, return false If there is reason to believe player is trapped and there is a reasonable chance there is not a pit in a neighboring square and if risky mode is enabled, take risk and move to space

RULE 3
If player is in a space that has a stench or breeze, return true

RULE 4
if space contains both a stench and a breeze and wumpus is not dead, return true and if space only contains breeze, return true if space only contains stench and wumpus is not dead, return true

Summary Rule 4
If space does not contain a breeze or stench, return true

RULE 5

if space does not contain a breeze or stench or it does not contain a breeze and wumpus is dead, return true

SUMMARY OF RULE 5
Calculates odds of neighboring sqaces being either a wumpus or pit based on detecting a breeze or stench ALSO WE IMPLEMENT FUZZY LOGIC IN WHICH if spaces neighbors have not already been calculated, if current space has a breeze, calculate odds of pit, if current space has a stench, calculate odds of wumpus

SUMMARY OF FUZZY LOGIC :


Add 30% chance of pit or wumpus to current % chance for neighboring spaces

SCREEN SHOT OF OUR WUMPUS WORLD PROJECT:

You might also like