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

[New Game] Add Chrome T-Rex game #67

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

void-main
Copy link

@void-main void-main commented May 5, 2020

Add the Chrome T-Rex rush game to PLE. It should be a fun game for learning & playing. 😄

Here's a random agent playing the game:
t-rex-with-random-agent

Game Spec

Observation Space

  • width: 600
  • height: 150
  • depth: 3
  • pixels in uint8

Action Space

  • NO_OP
  • JUMP (space key)
  • DUCK (down key)
  • STAND (up key)

The reason we add a STAND action is that somehow gym-ple doesn't propogate NO_OP to our game which makes our dino not able to stand up again after ducked once.

Rewards

0 for ticking, 1 for passing each obstacle and -5 for game over.
We use predefined rewards from base game.

We also limit a high score to 50 (could be configured with max_score). A fun fact is that when I first try to train my agent, there's an episode lasts about 2 hours (passed 3K obstacles).

Simplification

We removed cloud and high score board in this implementation to make the observation cleaner for agents. Maybe we should add an option for this?

Credit

The implementation depends largely on @shivamshekhar 's Chrome-T-Rex-Rush.

@void-main
Copy link
Author

Hi @ntasfi , I'm trying to add a new game to PLE. Hope you like it. ❤️

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

Successfully merging this pull request may close these issues.

1 participant