Add features--multiple fruits

This commit is contained in:
Chris Proctor
2026-03-19 12:33:25 -04:00
parent 9276ed9aa0
commit 610ef88ece
5 changed files with 81 additions and 42 deletions

View File

@@ -12,6 +12,6 @@ def play():
Catcher((11, 29)),
FruitManager(),
]
state = {'Score': 0}
state = {'Score': 0, 'Lives': 5}
game = Game(agents, state, board_size=(WIDTH, HEIGHT), framerate=24, color="white_on_indigo", dump_state="result.json")
game.play()