I fixed it so it worked

This commit is contained in:
lfitchlee
2025-11-19 09:39:01 -05:00
parent 8f8ca76614
commit 62327dd5ea
7 changed files with 70 additions and 0 deletions

View File

@@ -2,3 +2,13 @@
# ------------
# By MWC Contributors
# This class implements a simple game where a spaceship avoids asteroids.
from retro.game import Game
from spaceship import Spaceship
from asteroid_spawner import AsteroidSpawner
board_size = (25, 25)
ship = Spaceship(board_size)
spawner = AsteroidSpawner(board_size)
game = Game([ship, spawner], {"score": 0}, board_size=board_size)
game.play()