Skip to content

A python bot that uses Google Chrome's T-Rex game using image processing.

Notifications You must be signed in to change notification settings

ChitrikaGahtori/T-RexGame-Or-DinoGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DINOSAUR GAMEBOT

Game Link : http://www.trex-game.skipser.com/
This is a automatic player game. The python code controls the dinosaur (player).
Works using python's image processing library.

pyautogui

Cross-platform GUI automation for human beings.
PyAutoGUI is a Python module for programmatically controlling the mouse and keyboard.

Pillow

Python Imaging Library (abbreviated as PIL) (in newer versions known as Pillow) is a free library for the Python programming language that adds support for opening, manipulating, and saving many different image file formats.

Working:

1.The code converts a region ahead of the dinosaur into grayscale to check the presence of any obstacle.
2.If obstacle appears the code controlls the dinosaur by pressing the respective keys to avoid the obstacles.
3.The image coordinates vary depending on the screens resolution.
4.Set the coordinates accordingly for perfect obstacle detection.

DEMO

alt text

About

A python bot that uses Google Chrome's T-Rex game using image processing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages