A collection of classic games enhanced with AI capabilities, built using Python and Pygame.
-
Ball Game
- An interactive ball physics game with AI hand tracking
- Control the paddle using hand gestures captured by your webcam
- Features MediaPipe hand detection for intuitive controls
-
Rock Paper Scissors
- Classic Rock Paper Scissors game against an AI opponent
- AI learns from your playing patterns to provide a challenging experience
-
Snake & Apple
- The classic Snake game with an AI twist
- Features intelligent apple placement and optional AI-assisted gameplay
-
AI Cricket
- A cricket simulation game with AI-powered opponents
- Test your batting and bowling skills against intelligent AI players
- Python 3.7 or higher
- Required Python packages (see requirements.txt)
- Webcam (required for Ball Game hand tracking)
- Clone the repository:
git clone https://github.com/iamr7d/AI-enabled-mini-games.git- Install required dependencies:
pip install -r requirements.txt- Run the main menu:
python main_menu.py- Launch the game by running
main_menu.py - Use your mouse to select any of the available games from the menu
- Each game has its own controls and objectives:
- Ball Game: Use hand gestures in front of your webcam to control the paddle
- Rock Paper Scissors: Click to make your selection
- Snake & Apple: Arrow keys to control the snake
- AI Cricket: Follow in-game instructions for controls
Each game incorporates unique AI elements:
- Hand gesture recognition using MediaPipe
- Adaptive difficulty levels
- Pattern recognition
- Intelligent opponent behavior
- Dynamic gameplay adjustments
AI-enabled-mini-games/
├── main_menu.py # Main game launcher
├── requirements.txt # Python dependencies
├── Ball/ # Ball game files with hand tracking
├── RockPaperScissors/ # RPS game implementation
├── snak and apple/ # Snake game files
└── AI Cricket/ # Cricket game implementation
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
This project is open source and available under the MIT License.
- @iamr7d - Initial work and maintenance