Docsity

Wumpus World Program: Implementing Improvements in the Agent - Prof. Vicki H. Allan, Assignments of Computer Science

Toggle sidebar
bg1
Program 1
Wumpus World
Part 1
• Install Java on your computer (Main 229 should already have Eclipse and Java installed)
• Install Eclipse (or your favorite IDE)
• Download the starter code WWJar from the class website.
• Read the code and familiarize yourself with how it works.
Wumpus World is described in the class notes (under the link at Logical Agents). Running the code
shows the actual percepts (on the left) and the facts that have been discovered on the right. Notice, that
the cell where the agent currently is is red. Cells that have been explored are blue. The agent records
information as follows:
1. OK. The cell has been visited and is safe.
2. Stench. The cell has been visited and a stench was smelled.
3. Wump? The agent thinks there may be a wumpus in the cell.
4. Pit? The agent thinks t here may be a pit in the cell.
5. Glitter. There is gold in the cell. The agent stops when it finds the gold.
pf2

Partial preview of the text

Download Wumpus World Program: Implementing Improvements in the Agent - Prof. Vicki H. Allan and more Assignments Computer Science in PDF only on Docsity!

Program 1

Wumpus World

Part 1

  • Install Java on your computer (Main 229 should already have Eclipse and Java installed)
  • Install Eclipse (or your favorite IDE)
  • Download the starter code WWJar from the class website.
  • Read the code and familiarize yourself with how it works.

Wumpus World is described in the class notes (under the link at Logical Agents). Running the code shows the actual percepts (on the left) and the facts that have been discovered on the right. Notice, that the cell where the agent currently is is red. Cells that have been explored are blue. The agent records information as follows:

  1. OK. The cell has been visited and is safe.
  2. Stench. The cell has been visited and a stench was smelled.
  3. Wump? The agent thinks there may be a wumpus in the cell.
  4. Pit? The agent thinks t here may be a pit in the cell.
  5. Glitter. There is gold in the cell. The agent stops when it finds the gold.

Part 2

Implement as many of the following improvements as possible:

  1. As you play with the code, you will notice that the agent never enters suspicious cells. Allow the agent to be more aggressive. If it can’t find a safe cell, let it pick a new cell with the best chances of being safe.
  2. As you play with the code, you will notice that it loses information. It may decide a cell is NOT a pit, only to say it might be a Pit later on. Fix this.
  3. Add the ability to play over and over again by adding a new button to “Generate” a new grid.
  4. Give points to your agent so you know how well it does over time. Points are assigned as follows: a) Finding the gold (200 points) b) Being killed (-200 points) c) Each move (-1 point)
  5. Give your agent one or more arrows that it can fire (either North, South, East, or West). If it hits a wumpus, you will hear a scream. A dead wumpus cannot kill the agent. Incorporate this new ability into the agent logic. Reward the agent for NOT using arrows by giving 10 points for each arrow it does not use.

What to turn in. A jar file containing:

  1. The code needed to run the project. (See class homepage for directions on how to create a jar file from an Eclipse project.)
  2. Create a “readme.txt” file (which is part of the project) which explains what you implemented and any notes to the grader.