I didnt understand this well, I kind of understood how you did it, but most of it is confusing because I. Did. Not. Learn. ANY. OF. THIS.

This commit is contained in:
jbayati
2025-11-18 09:33:55 -05:00
parent ffe1993926
commit 3a2fdf30f0
7 changed files with 65 additions and 0 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()