Skip to content

Chrome's Original T-Rex from the 'Offline Page' can now learn all by himself using q-learning methods.

Notifications You must be signed in to change notification settings

darraghmckay/Learning-TRex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Learning T-Rex

Everyone knows Google Chrome's 'Offline Page' which has the very cool T-Rex jumping game.

Well using qlearner.js a Q-Learning library I develop, I was able to get our little T-Rex to learn how to best avoid the cacti (plural for cactus apparently).

See it in action (Demo)


Most of the custom functions required to do this live in the functions.js file. Including functions to simulate a keypress and a keyup on the spacebar.

In the main.js file you will find a method called chooseDinoMove which is where most of the qlearning methods are called.

About

Chrome's Original T-Rex from the 'Offline Page' can now learn all by himself using q-learning methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published