Skip to content

ritik-gupta/modern-snake-game-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Modern Snake Game OpenCv

  • This is a modern snake game which can detect object of any color and will treat it as snake!
  • Based on open-cv and numpy.
  • You need a webcam and a object of any color to play (except black).
  • It has the ability input desired color from the user. Simply enter the color you want at runtime.
  • Full list of available Colors can be found here: Colors

How to run:

NOTE: If you have Anaconda installed then open "conda prompt". Then:

  • type "pip install -r requirements.txt"

NOTE2: For linux users make sure you run program with "python3" instead of simply python and "pip3" instead of pip.

Steps

  • Make sure you have python installed
  • download all the files to a folder
  • open command prompt as administrator
  • change directory to that folder (cd directory-full-path)
  • pip install -r requirements.txt (it will install all the required modules)
  • (for linux use sudo pip install -r requirements.txt)
  • run snake.py
  • follow instructions
  • finally press 'Esc' to exit from the window or just end the game :p

About

Modern Snake Game written in python using opencv

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages