bfs #19

Merged
s473616 merged 5 commits from bfs into master 2023-04-22 18:08:27 +02:00
3 changed files with 14 additions and 2 deletions
Showing only changes of commit 7c44d65347 - Show all commits

View File

@ -3,4 +3,5 @@ from enum import Enum
class AgentActionType (Enum):
MOVE_FORWARD = 0
TURN_LEFT = 1
TURN_RIGHT = 2
TURN_RIGHT = 2
UNKNOWN = None

10
agentState.py Normal file
View File

@ -0,0 +1,10 @@
from agentOrientation import AgentOrientation
from typing import Tuple
class AgentState:
orientation: AgentOrientation
position: Tuple[int, int]
def __init__(self, position: Tuple[int, int], orientation: AgentOrientation) -> None:
self.orientation = orientation
self.position = position

View File

@ -4,4 +4,5 @@ class GridCellType(Enum):
NOTHING = 0
STREET_VERTICAL = 1
STREET_HORIZONTAL = 2
GARBAGE_CAN = 3
GARBAGE_CAN = 3
VISITED_GARBAGE_CAN = 4