generated from mwc/lab_retro
This program differed from Unit 1 programs because
it felt more foreign, if that makes sense. The code used in this program was not my work hence, I did not feel as though I completely understood how each agent was doing what it was doing. I guess I can see the value of agents because they really do cut things short and functional. But I much prefer the labs and programs that had more original input for the learning experience! At this stage I don't know if I am comfortable or confident going into the game project but I will try to think more about the agents to understand better.
This commit is contained in:
@@ -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()
|
||||
game = Game([ship, spawner], {"score": 0}, board_size=board_size)
|
||||
game.play()
|
||||
Reference in New Issue
Block a user