implement bfs algorythm

This commit is contained in:
Pawel Felcyn 2023-04-22 16:17:00 +02:00
parent f12eb5ba0d
commit 7c44d65347
3 changed files with 14 additions and 2 deletions

View File

@ -4,3 +4,4 @@ class AgentActionType (Enum):
MOVE_FORWARD = 0
TURN_LEFT = 1
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

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