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

Crouch action does not work properly #1

Open
sanketsans opened this issue Apr 9, 2020 · 0 comments
Open

Crouch action does not work properly #1

sanketsans opened this issue Apr 9, 2020 · 0 comments

Comments

@sanketsans
Copy link

I looked into the game file, it says 2 acts for crouch movement. But when I create the environment, it does not crouch - just stand still. Also, 0 make the dino jump instead of just running.

env = gym.make('ChromeDino-v0')

env = make_dino(env, timer=True, frame_stack=True)
state = env.reset()
done = False
score = 0
while True:
#     action = np.random.choice(np.arange(1,4))
    action = 2
    state, reward, done, _ = env.step(action)
    score += reward
    if done:
        state = env.reset()
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

1 participant