MazenTayseer / Automated_Flappy_Bird

An AI that plays flappy bird and never loses, Built using python and NEAT.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automated Flappy Bird AI

Flappy Bird AI is a sophisticated solution that employs a Neural Network trained through the NEAT (NeuroEvolution of Augmenting Topologies) algorithm to master the Flappy Bird game. Designed to continually evolve, this AI endeavors to play flawlessly without losing.

Table of Contents

Features:

  • AI Learning: Progressive learning from each gameplay to enhance precision.
  • Consistent Mastery: Strives to perfect the gameplay and never lose.
  • Real-time Visualization: Witness the AI's gameplay and admire its evolving skills.

Prerequisites

  • Python 3.x
  • Pygame
  • neat-python

Installation

  1. Clone the repository:
git clone https://github.com/MazenTayseer/Automated_Flappy_Bird.git
  1. Navigate to the cloned repository:
cd Automated_Flappy_Bird
  1. Install the necessary packages:
pip install -r requirements.txt

Usage

  1. Run the main script:
python main.py
  1. Enjoy watching the AI adeptly navigate the challenges of Flappy Bird!

How it Works

NEAT Algorithm

The NEAT algorithm empowers the AI to evolve its neural network, adapting to the intricacies of the Flappy Bird game. By evolving and refining the network topology over time, NEAT ensures the AI's consistent improvement in the game.

Game Mechanics

The AI assimilates vital game data such as its current vertical position, the upcoming gap's vertical placement, and its vertical velocity. Based on these inputs, it judiciously decides when to make the bird jump.

Contributing

Contributions are warmly welcomed! Feel free to fork this project, make enhancements, and submit pull requests. If you discover any bugs or have suggestions for improvements, please open an issue.

License

This project is under the MIT License. See the LICENSE file for complete details.

About

An AI that plays flappy bird and never loses, Built using python and NEAT.

License:Apache License 2.0


Languages

Language:Python 100.0%