GridObject.simulate#
- GridObject.simulate(action: Action, front_object: Self | None = None, walkable: bool = False) Self#
Simulate how grid object would change if a given action were taken.
Is used in the
curiosity_gym.core.gridengine.simulate()method to get the state of the environment if a given action is performed by the RL agent.- Parameters:
action (
Action) – Action of the RL agent to be simulated.front_object (
GridObject| None, optional) – Grid object currently in front of the RL agent, by default None.walkable (bool, optional) – Wheter the agent can move over the cell in front, by default False.
- Returns:
Copy of the grid object, including changes caused by the given action.
- Return type: