GridWorld.block#

GridWorld.block(coord)[source]#

Block one state.

When the agent tries to enter a blocked state, it will be forced to stay in the current state, i.e. no movements.

Parameters:

coord (tuple of ints) – Coordinate of the state to block.

Examples

>>> W = GridWorld()
>>> W.add_area((1, 1))
>>> W.block((1, 0, 0))