GridWorld.num_area#

property GridWorld.num_area#

Number of areas in the world of gridworld environment.

Note

Origin is not included when counting the number.

Returns:

num_area – Number of areas in the world.

Return type:

int

Examples

>>> W = GridWorld()
>>> W.add_area((2, 2))
>>> W.add_area((3, 3))
>>> W.num_area
2