Skip to content

A naive python bot that plays Google Chrome's Dino game.

Notifications You must be signed in to change notification settings

leytondsilva/DinoPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

DinoPy

A naive python bot that plays Google Chrome's Dino game.

Link to Dino game (simply copy-paste this into Chrome's url box):

chrome://dino

Requirements:

  1. Python
  2. Python Libraries:
  • Pillow
  • Numpy
  • Pyautogui

Pyhton Download : https://www.python.org/downloads/

To download Python Libraries:

1)Open CMD

2)Type (pip install library_name):

  • pip install numpy

  • pip install pillow

  • pip install pyautogui

Steps:

1] Align the chrome tab to the left.

2] Hit SpaceBar and take a screenshot using Win + PrintScreen.

3] Find the area of pixels in front of the dino to detect obstacles.

  • Ceate a rectangle box ahead of the dino

  • Hover over the corners to find the X, Y Coordinates

4] Edit the pixel coordinates in the py file.

5] Run and optimize it to your preference.

Back to Top