Fixed bug in game.py

the problem was you were passing `Agent` rather
than `player` (Which is an instance of `Agent`,
not the class itself) into the game.
This commit is contained in:
Chris Proctor
2025-12-09 07:55:49 -05:00
parent d61dc6ff89
commit 9805e9d9e4

View File

@@ -28,5 +28,5 @@ class Agent:
if __name__ == '__main__': if __name__ == '__main__':
player = Agent() player = Agent()
game = Game([Agent], {'score': 0}, board_size:=(24, 20), framerate:=12) game = Game([player], {'score': 0}, board_size:=(24, 20), framerate:=12)
game.play() game.play()