This is an interactive Snake Game built using Python, OpenCV, and cvzone. The game utilizes hand gestures for controlling the snake's movement in real-time using computer vision.
- Hand Gesture Control: Control the snake using your hand's direction.
- Real-Time Processing: Smooth and responsive gameplay.
- Score Tracking: Collect food to increase your score.
- Collision Detection: The game ends upon collision with the wall or itself.
- Simple Interface: Enjoy a clean, user-friendly gaming experience.
- Python for game logic
- OpenCV for real-time video processing
- cvzone for simplified hand detection
- NumPy for calculations
- PIL (Pillow) for image rendering
- Clone the repository:
git clone https://github.com/CodeWithBasu/SnakeGame.git
- Install required packages:
pip install opencv-python cvzone numpy Pillow
- Run the game:
python snake_game.py
- Use hand gestures to control the snake.
- Move your hand up, down, left, or right to navigate.
- Eat the food to increase your score.
- Avoid colliding with the walls or yourself.
- Ensure the webcam is working.
- Install any missing dependencies using
pip install. - Adjust lighting for better hand detection.
Contributions are welcome! Fork the repository and submit a pull request.
Enjoy playing the Snake Game with your hands and experience a unique way of gaming using computer vision!