Skip to content

This T-Rex Runner game sourced from Chromium, has been modified to train AI models by allowing players to control multiple dinosaurs.

License

Notifications You must be signed in to change notification settings

hamzagoc/multi-t-rex-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi T-rex Runner

This T-Rex Runner game sourced from Chromium, has been modified to train AI models by allowing players to control multiple dinosaurs.

How To Use

Helper functions in trainer-command.js

    // Create game with 100 t-rex
    createGame(100)
  
    // Jump for the 5th
    jump(5)
    // Duck for the 5th
    duck(5)

    // Get score
    const instance = window.getRunnerInstance();
    const { distanceMeter, distanceRan } = instance;
    const score = distanceMeter.getActualDistance(distanceRan);

Simple demo

randomPlay(100)

Resources

  • Game extracted from Chromium by @liuwayong. Original repo is here

About

This T-Rex Runner game sourced from Chromium, has been modified to train AI models by allowing players to control multiple dinosaurs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published