This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#will faill with one food on the other side of a long wall | |
###### | |
#NB save state in global variable (heeehee) and give score for moving away from it | |
#### | |
checkLine(grid, pt, v, l) | |
for s in range(l): | |
pt = (pt[0] + v[0], pt[1] + v[1]) | |
if grid[pt[0]][pt[1]]: | |
return True: |