Fun interactive snake game with a camera, implemented in python using PyGame and OpenCV.
This implementation was used on: OS: Windows 11 23H2 Python Version: Python 3.11.0
Make sure to install all python packages from requirements.txt
Run the code in your editor, open your camera and have fun!
After running the code, the snake game window will open and a 60 seconds timer will start.
A camera window will start right after that, containing a blank screen with 9 separated areas. The camera follows the index point of your hand, so make sure that your hand is clearly visible to the camera at a right angle.
As the timer reaches 0, you can start again by pressing c or quit by pressing q.Try to beat my high-score (14), and Have FUN!