SpeedBump #23
4
bfs.py
4
bfs.py
@ -9,12 +9,12 @@ from turnCar import turn_left_orientation, turn_right_orientation
|
||||
class Succ:
|
||||
state: AgentState
|
||||
action: AgentActionType
|
||||
cost: int
|
||||
##cost: int
|
||||
|
||||
def __init__(self, state: AgentState, action: AgentActionType) -> None:
|
||||
|
||||
self.state = state
|
||||
self.action = action
|
||||
self.cost = cost
|
||||
##self.cost = cost
|
||||
|
||||
def find_path_to_nearest_can(startState: AgentState, grid: Dict[Tuple[int, int], GridCellType]) -> list[AgentActionType]:
|
||||
q: Queue[list[Succ]] = Queue()
|
||||
|
Loading…
Reference in New Issue
Block a user
nie przekazujesz tutaj argumentu cost, aplikacja się wywala