What it does
Jev plays the Chrome dinosaur runner.
Playable demos & bots
Screenshot unavailable. Open the experiment ↗
Jev plays the Chrome dinosaur runner.
A developer can adapt this code to let an outside AI service play a browser game. The web browser runs the game normally. The AI looks at new obstacles and decides whether to jump or duck. You could borrow this approach to test an automated player in your own customized game.
A background program connects the code to TypeSafe, the external AI service. This hidden program holds a secure access key so the web browser never sees it. If the connection is missing, the automated player switches off. A person can still play the game normally using a keyboard.