diff --git a/source/__pycache__/bfs.cpython-311.pyc b/source/__pycache__/bfs.cpython-311.pyc index 242ec3f..85caf44 100644 Binary files a/source/__pycache__/bfs.cpython-311.pyc and b/source/__pycache__/bfs.cpython-311.pyc differ diff --git a/source/area/__pycache__/field.cpython-311.pyc b/source/area/__pycache__/field.cpython-311.pyc index de6cd90..e5f62bb 100644 Binary files a/source/area/__pycache__/field.cpython-311.pyc and b/source/area/__pycache__/field.cpython-311.pyc differ diff --git a/source/area/__pycache__/tractor.cpython-311.pyc b/source/area/__pycache__/tractor.cpython-311.pyc index 5c74a7c..9d4cac2 100644 Binary files a/source/area/__pycache__/tractor.cpython-311.pyc and b/source/area/__pycache__/tractor.cpython-311.pyc differ diff --git a/source/bfs.py b/source/bfs.py index 20725e2..2caf2ae 100644 --- a/source/bfs.py +++ b/source/bfs.py @@ -170,8 +170,8 @@ def get_moves(elem): while (elem.get_parent() != None): move_list.append(elem.get_action()) elem = elem.get_parent() - move_list.reverse() - return move_list + move_list.reverse() + return move_list diff --git a/source/main.py b/source/main.py index d75af19..7b63356 100644 --- a/source/main.py +++ b/source/main.py @@ -21,7 +21,7 @@ def main(): pygame.display.update() #getting coordinates of a certain tile - test: - tile_index=2 + tile_index=22 tile_x, tile_y = get_tile_coordinates(tile_index) if tile_x is not None and tile_y is not None: print(f"Coordinates of tile {tile_index} are: ({tile_x}, {tile_y})")