https://github.com/aduyha04/ai_flappy_bird
This is a Flappy Bird game implementation using the NEAT (NeuroEvolution of Augmenting Topologies) algorithm for artificial intelligence and Pygame for graphics and interaction.
https://github.com/aduyha04/ai_flappy_bird
neat-python pygame python
Last synced: 2 months ago
JSON representation
This is a Flappy Bird game implementation using the NEAT (NeuroEvolution of Augmenting Topologies) algorithm for artificial intelligence and Pygame for graphics and interaction.
- Host: GitHub
- URL: https://github.com/aduyha04/ai_flappy_bird
- Owner: aduyha04
- Created: 2025-04-11T03:56:09.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-11T04:17:00.000Z (2 months ago)
- Last Synced: 2025-04-11T05:25:01.067Z (2 months ago)
- Topics: neat-python, pygame, python
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flappy Bird Game with NEAT and Pygame
## Description
This is a Flappy Bird game implementation using the NEAT (NeuroEvolution of Augmenting Topologies) algorithm for artificial intelligence and Pygame for graphics and interaction. The game features pixel-perfect collision detection using masks and a simple genetic algorithm to train the bird to play and eventually beat the game.## Features
- NEAT algorithm for training the bird
- Pixel-perfect collision detection
- Graphics using Pygame
- Simple genetic algorithm for training
- Adjustable settings through config files## Installation
1. Clone the repository to your local machine.
```bash
git clone https://github.com/your_username/AI_Flappy_Bird.git
```
2. Install the required libraries using pip.
```bash
pip install -r requirements.txt
```## Usage
1. Run the main script to start the game.
```bash
python flappy_bird.py
```
2. The game window will open, and you can see the birds learning to play Flappy Bird.## Configuration
- `config.txt`: This file contains the configuration parameters for the NEAT algorithm. You can adjust settings such as population size, mutation rates, and more in this file to customize the training process.## Credits
- Author: Anh-Duy Ha