SZI2019SmieciarzWmi/Traversal/DFS.py
2019-04-10 11:18:22 +02:00

9 lines
241 B
Python

def DFS(grid, avaliable_movement, gc_moveset):
if(moveset[-1] == (1,4) or len(avaliable_movement) == 0):
return gc_moveset
x,y = gc_moveset[-1]
move = avaliable_movement.pop()
## TUTAJ ZAIMPORTOWAC MOVEMENT