Built using PyGame, OpenCV, and Mediapipe.
Requires a working webcam.
First, install the required libraries:
pip install -r requirements.txt
Run the game file
python/python3 colormatch.py
You play as a colored cube moving against oncoming different colored blocks. For every block you collide with, you must be holding up the same amount of fingers as the number displayed on the block (you must match your color to the color of any incoming block). The game gets progressively harder with every point scored.
The backend uses openCV and mediapipe to process your webcam feed and track your hand.
From there, the game runs with if conditions in a PyGame loop to update the game screen.
Here's a gameplay example:
Enjoy! My high score was 30.