avoiding side effects
- AI agent navigates grid, reaches goal, preserves reversible state. Increased environmental awareness vital
AI agent in a grid world trying to reach a goal but it must leave the world in a reversible state For reversible box movements, there must be a path for the agent to reach the opposite side of the box from where it was pushed. In this example, you can imagine a knight in chess - after pushing the box, there must be a way to reach the opposite side of the box by making a knight's move from one of the adjacent nodes. The possibility depends on the box and the world, so I placed the relevant functions within the box object, and the agent inspects the box from its own methods. This requires the agent to have increased awareness of its environments over the other two algorithms. It must be constantly updated and made aware of the contents of the nearby nodes. It must know whether they are accessible, and whether they have the box in.