GridWorld.time#
- property GridWorld.time#
Gridworld environment time.
timeattribute of gridworld environment represents the number of steps that the agent has moved.- Returns:
time – Current time of gridworld environment.
- Return type:
int
Examples
>>> W = GridWorld() >>> W.add_area((2, 3)) >>> W.add_path((0, 0, 0), (1, 0, 0)) >>> W.init_agent() >>> W.step((1, 0)) >>> W.step((0, 0)) >>> W.time 2