Skip to content

PongAI Master is a Python-based AI program showcasing an advanced AI agent playing Pong. Using neural networks and NEAT, the AI learns strategic gameplay. With adjustable difficulty and interactive Pygame interface, experience impressive AI gameplay. Clone and run to witness it in action!

Notifications You must be signed in to change notification settings

PeaceTheeCoder/PongAI-Master

Repository files navigation

PongAI Master

PongAI Master is an AI program developed using Python and the Pygame library that showcases an advanced AI agent playing the classic game of Pong. The project leverages the power of neural networks, specifically the NEAT (NeuroEvolution of Augmenting Topologies) algorithm, to train the AI agent and enable it to compete against human players or other AI opponents in Pong.

Key Features

  • Intelligent Gameplay: PongAI Master utilizes a neural network to learn and adapt to different game situations, exhibiting strategic decision-making and precise ball control.
  • Real-time Training: The AI agent undergoes a training process, using the NEAT algorithm, to improve its performance over time. It learns from its successes and failures, evolving its neural network architecture dynamically.
  • Adjustable Difficulty: PongAI Master allows users to customize the difficulty level, enabling beginners and experienced players to find the right challenge.
  • Interactive Interface: The Pygame library provides an engaging graphical interface for users to interact with the AI agent, observe its gameplay, and enjoy the nostalgic Pong experience.

Technologies

  • Python: The primary programming language used to build the AI agent and game mechanics.
  • Pygame: The library utilized for creating the Pong game environment, handling graphics, and user input.
  • NEAT (NeuroEvolution of Augmenting Topologies): The algorithm employed to train and evolve the AI agent's neural network.

Getting Started

To get started with PongAI Master, follow these steps:

  1. Clone the repository: git clone https://github.com/PeaceTheeCoder/PongAI-Master.git
  2. Install the required dependencies: pip install -r requirements.txt
  3. Run the program: python pong_play.py to play a two player mode
  4. Run the program: python pong_ai.py to play with an ai
  5. Enjoy playing against the AI or play with someone

Contributions

We believe PongAI Master offers a captivating demonstration of how AI can learn and excel at classic video games. Whether you're a Pong enthusiast, a developer interested in AI, or simply looking for an entertaining gaming experience, we invite you to explore and enjoy PongAI Master.

Please note that this project is for educational and demonstration purposes and can serve as a starting point for AI game development and research.

Feel free to clone the repository, experiment with the code, and contribute to further enhancements. We welcome your feedback and contributions!

About

PongAI Master is a Python-based AI program showcasing an advanced AI agent playing Pong. Using neural networks and NEAT, the AI learns strategic gameplay. With adjustable difficulty and interactive Pygame interface, experience impressive AI gameplay. Clone and run to witness it in action!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages