![IMG-1800.jpg](https://static.wixstatic.com/media/6d9b47_20293af1c9634b6b9176b5aa1c396369~mv2.jpg/v1/fill/w_583,h_386,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/IMG-1800.jpg)
The Algorithm
In order to find the gold, our agent creates an internal representation of the board using a list of squares. Each square contains information about its position and safety (e.g. whether or not there is a pit or Wumpus).
​
On each move, the agent travels to the safest adjacent square that has not been visited more recently than the others. This makes it so the agent is able to explore unique paths without stumbling onto an unsafe square.
​
Once the agent moves to another square, it reads the state of that square to determine whether it has a breeze, stench, glitter, or gold. We use recursion to effectively reorganize our agent's current information. After the current square's state has been updated, all the adjacent squares' states are updated as well. Then, their adjacent squares are updated too.
![IMG-1801.jpg](https://static.wixstatic.com/media/6d9b47_f986a56543bd492892e432da9f9ff283~mv2.jpg/v1/fill/w_600,h_338,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/IMG-1801.jpg)
Is It Intelligent?
Our agent is capable of making logical decisions and using rational to overcome obstacles and retrieve the gold, so it definitely has the characteristics of a typical artificial intelligence. However, to classify it as "intelligent" might be a bit of a stretch.
​
Looking towards other artificial agents that are built to overcome challenges, we find that there are several that have far exceeded humans in terms of computational speed. For example, the brilliant chess engine AlphaZero has constantly come out on top even against the best players in the world. Our agent can be likened to AlphaZero, as both attempt to carry out their tasks in the most efficient way they know.
​
However, they are also similar in another fashion: they are unable to change, grow, or develop. Both AlphaZero and our agent are limited to the confines of their respective games, and they would be useless in any fundamentally different setting. The lack of adaptation shown leads to the conclusion that they are not truly intelligent, only adept at calculations.
![IMG-1802.jpg](https://static.wixstatic.com/media/6d9b47_4fc9759238954edcb44ea891e8476cd5~mv2.jpg/v1/fill/w_600,h_338,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/IMG-1802.jpg)
The Results
Overall, the agent was very successful and its logic was sound in deciding the safest paths to take. We were able to successfully clear three maps, and most likely could have completed more if we were aware of one bug.
​
Our main flaw was that our agent did not understand that there would only be one pot of gold on the map; thus, on the fourth map, it did not stop its search after finding the first pot of gold, resulting in an endless loop.
​
Although our agent did very well, it definitely could have been improved. For example, other groups were able to solve maps much quicker than we could. This was most likely due to the fact that our agent was designed to take paths that have been least explored.
​
If we were to redo this project, we might consider some form of advanced memory system, so as to be able to track the agent's path and location. In doing so we would be able to return to the start immediately after finding the gold, instead of further exploring the map.
​
​
​
​
​