Skip to content

Commit

Permalink
add floodfill algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliting committed Oct 31, 2024
1 parent f2e6b2c commit 4df10df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def move(game_state: Dict) -> Dict:
return {"move": "down"}

#step 4- move to food
next_move = None
food = game_state['board']['food']
if len(food) > 0:
# Find closest food
Expand Down

0 comments on commit 4df10df

Please sign in to comment.