A fruit slicing game using computer vision, inspired by Fruit Ninja.
- Python 3.x
- A webcam
- Install the required dependencies using the following command:
pip install -r requirements.txt
- Run the game:
python3 game.py
- Stand in front of your camera. Raise your hand so the camera can see your index finger.
- Move your index finger around to slice the fruits (watermelon, orange, lemon) that spawn on the screen.
- Avoid slicing the bombs! If you slice a bomb, the game is over.
- Press the 'R' key to restart the game if you lose.
- Press the 'Q' or 'Esc' key to quit the game at any time.