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
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.
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
You can’t perform that action at this time.