generated from mwc/project_game
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:
4
game.py
4
game.py
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user