bfs #19

Merged
s464965 merged 6 commits from bfs into master 2022-04-11 13:49:11 +02:00
Showing only changes of commit 88297d0b9b - Show all commits

View File

@ -121,7 +121,7 @@ def go(row, column, direction):
def is_valid_move(map, target_row, target_column): def is_valid_move(map, target_row, target_column):
if 0 <= target_row < ROWS and 0 <= target_column < COLUMNS: if 0 <= target_row < ROWS and 0 <= target_column < COLUMNS and map[target_row][target_column] == ' ':
return True return True
return False return False