Code has been updated

This commit is contained in:
Thomas Naber
2024-03-12 20:55:16 -04:00
parent dd83d46bb0
commit cd0f82470d
8 changed files with 292 additions and 205 deletions

View File

@@ -2,3 +2,12 @@
# ------------
# 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()