diff --git a/Raporty/route-planning.md b/Raporty/route-planning.md index 0cbb2e8..4d61cda 100644 --- a/Raporty/route-planning.md +++ b/Raporty/route-planning.md @@ -48,7 +48,8 @@ Jeśli nie osiągnęliśmy celu, przechodzimy do analizowania sąsiadów obecnej ```python for new_position in [(0, -1), (0, 1), (-1, 0), (1, 0)]: node_position = (current_node.position[0] + new_position[0],current_node.position[1] + new_position[1]) - if node_position[0] >= (rows - 1) or node_position[0] <= 0 or node_position[1] >= (rows - 1) or node_position[1] <= 0: continue + if node_position[0] >= (rows - 1) or node_position[0] <= 0 or node_position[1] >= (rows - 1) or node_position[1] <= 0: + continue if node_position in cantwalk: continue new_node = Node(current_node, node_position)