PyGame-Learning-Environment icon indicating copy to clipboard operation
PyGame-Learning-Environment copied to clipboard

NameError: name 'myAgentHere' is not defined

Open Rami-Ismael opened this issue 4 years ago • 1 comments

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

Rami-Ismael avatar Jan 06 '21 18:01 Rami-Ismael