Source code for gridworld.models.action
from enum import Enum
[docs]class Action(Enum):
"""Models all possible actions."""
up: int = 0
down: int = 1
right: int = 2
left: int = 3
from enum import Enum
[docs]class Action(Enum):
"""Models all possible actions."""
up: int = 0
down: int = 1
right: int = 2
left: int = 3