Skip to content

Raamyy/Chrome-Dino-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Chrome Dino Bot

A bot that plays the boring chrome dinosaur game that appears when no internet available.


Game Screenshot

You will need to install pyautogui to make the bot run

pip install pyautogui

Use this link chrome://dino/ to access the game even when you have internet (use chrome).


Theory

I capture a screenshot every frame to look for obstacles to avoid.

There are 2 search ranges to find obstacles:

1- To look for the ground obstacles (Cactus).

2- To look for the upper obstacles (Birds).

How to identify obstacle?

An obstacle is considered any pixel in the search area that is different than the background colour. If the bot finds an obstacle it uses the python keyboard library to press space and let the Dino jump.


The high score so far is 14490.

Any recommendations are welcomed

Releases

No releases published

Packages

No packages published

Languages