GridWorld.__init__#
- GridWorld.__init__(origin_shape=None)[source]#
Initialize a gridworld environment.
- Parameters:
origin_shape (tuple of ints (optional, default: None)) – Shape of the world origin. If not provided, the origin will be initialized to be only one state
(0, 0, 0), otherwise it will be a rectangular area of shapeorigin_shape.
Examples
Initialize a gridworld environment by default.
>>> W = GridWorld()
Manually set origin shape.
>>> W = GridWorld((3, 4))