Skip to content

royninja/AI_trex_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

First AI by me. T-Rex game bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages