ruch_traktora_po_bfs #14

Merged
s481834 merged 4 commits from ruch_traktora_po_bfs into snake_move 2024-04-14 19:50:31 +02:00
Showing only changes of commit 2c03c4857c - Show all commits

3
App.py
View File

@ -39,8 +39,7 @@ def init_demo(): #Demo purpose
traktor.reset_pos(pole) traktor.reset_pos(pole)
bfsRoot = Tractor.BFS({"x": 0, "y": 0, "direction": "E", "hydradeIndex": traktor.slot_hydrate_dict}) bfsRoot = Tractor.BFS({"x": 0, "y": 0, "direction": "E", "hydradeIndex": traktor.slot_hydrate_dict})
bfsRoot.reverse() bfsRoot.reverse()
print(bfsRoot) # ui.render_text_to_console(string_to_print="traktor porusza się ścieżką bfs")
# ui.render_text(string_to_print="traktor porusza się ścieżką bfs")
traktor.move_by_root(bfsRoot, pole, [traktor.irrigateSlot]) traktor.move_by_root(bfsRoot, pole, [traktor.irrigateSlot])
start_flag=False start_flag=False
# demo_move() # demo_move()