lab_retro/nav_game_initial_code.py

12 lines
307 B
Python

# nav_game.py
# ------------
# By MWC Contributors
# This class implements a simple game where a spaceship avoids asteroids.
from retro.game import Game
from spaceship import Spaceship
board_size = (25, 25)
ship = Spaceship(board_size)
game = Game([ship], {"score" : 0}, board_size=board_size)
game.play()