Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'myAgentHere' is not defined #72

Open
Rami-Ismael opened this issue Jan 6, 2021 · 1 comment
Open

NameError: name 'myAgentHere' is not defined #72

Rami-Ismael opened this issue Jan 6, 2021 · 1 comment

Comments

@Rami-Ismael
Copy link

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

@ikeasamoahansah
Copy link

did you import myAgentHere ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants