$30
General Instructions: Upload your agent files (see below) as your submission for Homework 2 for the course CptS 440 Pullman (all sections of CptS 440 and 540 are merged under the CptS 440 Pullman section) on the Canvas system by the above deadline. Note that you may submit multiple times, but we will only grade the most recent entry submitted before the deadline.
For this homework you will implement a reflex agent with state to play the Wumpus World game. Specifically,
Download the latest version (3.2) of the Wumpus World simulator from GitHub at https://github.com/holderlb/wumpus-world-simulator.
Read the README for instructions on how to use the simulator.
Implement an agent that executes the following reflex rules (and only these rules).If the agent perceives a Glitter, then execute the GRAB action.
If the agent is in the (1,1) location and has the gold, then CLIMB.
If the agent perceives a Stench and has an arrow, then SHOOT.
If none of the above conditions are met, then the agent should randomly choose one of the actions: GOFORWARD, TURNLEFT, TURNRIGHT.
Your agent should maintain state information about the agent’s location and orientation and whether it has an arrow and the gold. Your agent does not have access to the game state within the simulator, so the agent will have to update its own state after each turn. But you may copy/include/import simulator code into your agent.
Your agent should be implemented entirely in the Agent.h and Agent.cc files (for C++ implementations) or the Agent.py file (for Python implementations). You may also include an optional readme.txt file with any extra instructions for running your agent. Your agent should not require any user input. Your agent will be tested by copying only your Agent.h and Agent.cc files, or Agent.py file, into a fresh copy of the simulator code, and compiling and running it on several test worlds. Your grade will be based on satisfying the above requirements, performance on the test worlds, and good programming style (see the course syllabus for links to style guides).
For this homework, you may assume the world size is always 4x4 and there are no pits.
For CptS 540 Students Only: Nothing extra.