Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.41 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.41 KB

Artificial Intelligence for T rex game (just a prototype) python

build

Trex game is a running dinosaur. Jump the dino trex over the cacti to gain points. Android phones are better suited for the game because chrome browser comes by default. 💻 alt text

the game

video guide

Need:

  • The game needs a wekit browser to run
  • Works with the firefox browser also
  • Python version 3

HOW TO

Step1: First Clone this project and open this link in browser for the game.

Step2: pip install -r requirements.txt

Step3: Split the screen by the execution window & webbrowser and run the program

or by terminal simply execute python trexgame_ai.py

Requirements

from PIL import ImageOps
from numpy import *
import pyautogui
import time

IDEA box=(x1,y1,x2,y2) box=(Cordinates.diano[0]+60,Cordinates.diano[1],Cordinates.diano[0]+100,Cordinates.diano[1]+5)

IF YOU WANT TO IMPROVE IT THE PLEASE DO IT !! 😉 YOU ARE WELCOME