lab_retro/try.py

10 lines
269 B
Python

# Was supposed to try this per the introduction to retro, but this doesn't
# actually seem to work? I keep getting an error...
from retro.game import Game
from retro.agent import ArrowKeyAgent
agent = ArrowKeyAgent()
state = {}
game = Game([agent], state)
game.play()