implement bfs algorythm
This commit is contained in:
parent
f12eb5ba0d
commit
7c44d65347
@ -4,3 +4,4 @@ class AgentActionType (Enum):
|
|||||||
MOVE_FORWARD = 0
|
MOVE_FORWARD = 0
|
||||||
TURN_LEFT = 1
|
TURN_LEFT = 1
|
||||||
TURN_RIGHT = 2
|
TURN_RIGHT = 2
|
||||||
|
UNKNOWN = None
|
10
agentState.py
Normal file
10
agentState.py
Normal 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
|
@ -5,3 +5,4 @@ class GridCellType(Enum):
|
|||||||
STREET_VERTICAL = 1
|
STREET_VERTICAL = 1
|
||||||
STREET_HORIZONTAL = 2
|
STREET_HORIZONTAL = 2
|
||||||
GARBAGE_CAN = 3
|
GARBAGE_CAN = 3
|
||||||
|
VISITED_GARBAGE_CAN = 4
|
Loading…
Reference in New Issue
Block a user