Skip to content

NameError: name 'myAgentHere' is not defined #72

@Rami-Ismael

Description

@Rami-Ismael

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions