GridWorld.remove_object#

GridWorld.remove_object(coord)[source]#

Remove one object from the world.

Parameters:

coord (tuple of ints) – Coordinate of the state whose object will be removed.

Examples

>>> W = GridWorld()
>>> W.add_area((2, 2))
>>> W.add_object((0, 0, 0), reward=1, prob=0.7)
>>> W.remove_object((0, 0, 0))