Today we added a function called "update_objects". This function implements "memory" for ARA-24; it considers the types of objects that the adjacent spaces can be, just by parsing the list of senses provided by the program. As our Agent continues through the grid, it constantly updates its list of possible objects by utilizing logic and reasoning in the form of a process of elimination.
It may seem complicated, but the logic is actually quite simple!
Here is how it works, broken down into pseudo-code:
- If the list of senses includes a stench, add the Wumpus to each adjacent space.
- So GLITTER -> GOLD, BREEZE -> PIT, etc.
- If the board has a guaranteed object at the space, DO NOT update possible_objects.
- If the information provided by possible_objects contradicts itself, the space is SAFE.
This also sets up the logic for the condition:
- If the space is not safe, avoid it (this will be utilized later).
Comments