PyGame-Learning-Environment
PyGame-Learning-Environment copied to clipboard
NameError: name 'myAgentHere' is not defined
from ple.games.flappybird import FlappyBird from ple import PLE
game = FlappyBird() p = PLE(game, fps=30, display_screen=True) agent = myAgentHere(allowed_actions=p.getActionSet())
p.init() reward = 0.0
for i in range(nb_frames): if p.game_over(): p.reset_game()
observation = p.getScreenRGB() action = agent.pickAction(reward, observation) reward = p.act(action) On line 7 it say does not work. I don't understand the error. I think the problem it could be it's running on a window pc