code refactor
This commit is contained in:
parent
be6481745a
commit
cecdc84657
@ -1,7 +1,7 @@
|
|||||||
import queue
|
import queue
|
||||||
from typing import Tuple, List
|
from typing import Tuple, List
|
||||||
|
|
||||||
from Node import Node
|
from node import Node
|
||||||
from tile import Tile
|
from tile import Tile
|
||||||
from const import DIRECTIONS_X, DIRECTIONS_Y
|
from const import DIRECTIONS_X, DIRECTIONS_Y
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ def successor(x: int, y: int):
|
|||||||
return neighbours
|
return neighbours
|
||||||
|
|
||||||
|
|
||||||
def breadth_first_search(field: List[Tile], start_x: int, start_y: int, goal: Tuple[int]):
|
def breadth_first_search(field: List[Tile], start_x: int, start_y: int, goal: Tuple[int, int]):
|
||||||
# TODO
|
# TODO
|
||||||
# 1. Implementacja akcji (zapisywanie tego co robot musi zrobić by przejść z jednego node do drugiego)
|
# 1. Implementacja akcji (zapisywanie tego co robot musi zrobić by przejść z jednego node do drugiego)
|
||||||
# 2. Wypisanie drogi razem z akcjami
|
# 2. Wypisanie drogi razem z akcjami
|
||||||
|
Loading…
Reference in New Issue
Block a user