Paperspace / DinoRunTutorial

Accompanying code for Paperspace tutorial "Build an AI to play Dino Run"
https://blog.paperspace.com/dino-run
MIT License
323 stars 104 forks source link

Adding duck functionality #14

Open b-x-wu opened 3 years ago

b-x-wu commented 3 years ago

Hi! I was looking through the code, and I realized that there's no way for the dino to duck during the game. There's a duck method for the DinoAgent class, but there's nothing in the Game class to support it.

I added in the functionality, and I was wondering if I could make a pull request.

mofengboy commented 3 years ago

Hi! I was looking through the code, and I realized that there's no way for the dino to duck during the game. There's a duck method for the DinoAgent class, but there's nothing in the Game class to support it.

I added in the functionality, and I was wondering if I could make a pull request.

How is the duck method implemented, please? I tried send_keys(Keys.DOWN) and keep_down(Keys.DOWN) without success.

ravi72munde commented 2 years ago

It was intentionally removed to reduce the training time and complexity.