Skip to content

A python remake of the famous T-Rex game from Google chrome

License

Notifications You must be signed in to change notification settings

MaxwellFB/Chrome_T_Rex_Rush_Like_Gym

 
 

Repository files navigation

T-Rex Rush Like Gym

Description:

A recreated version of the famous Chrome T-Rex in Python for reinforcement learning.

This repository was changed to allow the game be controlled by other programs, like Chrome_T_Rex_Rush_IA.

Technology:

Built using pygame library

Version and Release:

Reinforcement learning release, version 1.0

Instructions and Prerequisites:

  • Python v3.8.10
  • Pygame v2.0.1
How to start:
from Chrome_T_Rex_Rush_Like_Gym import main as dinoGame
dino = dinoGame.GameDino()
dinoGame.introscreen()
dino.reset_game()
Controls:

0 = do nothing

1 = jump

2 = crouch

3 = close game

isGameQuit, isGameOver = dino.play(action)
Restart game after game over:
dino.reset_game()
Close game:
dino.play(3)

OR

dino.quit()

Developed by:

Shivam Shekhar
Email: shivamshekhar299@gmail.com

Changed by:

Credits:

References:

About

A python remake of the famous T-Rex game from Google chrome

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 100.0%