Skip to content

iamr7d/AI-enabled-mini-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Enabled Mini Games Collection

A collection of classic games enhanced with AI capabilities, built using Python and Pygame.

🎮 Available Games

  1. 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
  2. Rock Paper Scissors

    • Classic Rock Paper Scissors game against an AI opponent
    • AI learns from your playing patterns to provide a challenging experience
  3. Snake & Apple

    • The classic Snake game with an AI twist
    • Features intelligent apple placement and optional AI-assisted gameplay
  4. AI Cricket

    • A cricket simulation game with AI-powered opponents
    • Test your batting and bowling skills against intelligent AI players

🚀 Getting Started

Prerequisites

  • Python 3.7 or higher
  • Required Python packages (see requirements.txt)
  • Webcam (required for Ball Game hand tracking)

Installation

  1. Clone the repository:
git clone https://github.com/iamr7d/AI-enabled-mini-games.git
  1. Install required dependencies:
pip install -r requirements.txt
  1. Run the main menu:
python main_menu.py

🎯 How to Play

  1. Launch the game by running main_menu.py
  2. Use your mouse to select any of the available games from the menu
  3. 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

🤖 AI Features

Each game incorporates unique AI elements:

  • Hand gesture recognition using MediaPipe
  • Adaptive difficulty levels
  • Pattern recognition
  • Intelligent opponent behavior
  • Dynamic gameplay adjustments

🛠️ Project Structure

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

🤝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests

📝 License

This project is open source and available under the MIT License.

👥 Authors

  • @iamr7d - Initial work and maintenance

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published