GridWorld.remove_path#
- GridWorld.remove_path(coord_from, coord_to)[source]#
Remove one inter-area connection from the world.
- Parameters:
coord_from (tuple of ints) – Coordinate of the path start state.
coord_to (tuple of ints) – Coordinate of the path end state.
Examples
>>> W = GridWorld() >>> W.add_area((2, 2)) >>> W.add_path((0, 0, 0), (1, 0, 0), register_action=(0, 1)) >>> W.remove_path((0, 0, 0), (1, 0, 0))