Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lovi-0/flippy-bird
Flappy Bird Game with AI
https://github.com/lovi-0/flippy-bird
deep-neural-networks flappy-bird game neat-algorithm neat-python python
Last synced: 4 days ago
JSON representation
Flappy Bird Game with AI
- Host: GitHub
- URL: https://github.com/lovi-0/flippy-bird
- Owner: Lovi-0
- License: mit
- Created: 2024-06-23T15:34:35.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T15:40:56.000Z (2 months ago)
- Last Synced: 2024-11-27T22:19:11.135Z (2 months ago)
- Topics: deep-neural-networks, flappy-bird, game, neat-algorithm, neat-python, python
- Language: Python
- Homepage:
- Size: 253 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
- License: LICENSE
Awesome Lists containing this project
README
# Flappy Bird Game with AI
## Description
This project features a Flappy Bird game implemented in Python using Pygame. It offers two modes of play:
- **Single Player Mode**: Controlled by a human player.
- **AI Mode**: Controlled by a neural network using the NEAT (NeuroEvolution of Augmenting Topologies) algorithm.## Files
1. **`run.py`**: This file allows you to play the game in single-player mode.
2. **`run_ai.py`**: This file allows the NEAT AI to play the game.## Requirements
To run this project, you'll need the following Python packages:
- `pygame`: For the game interface.
- `neat-python`: For the NEAT algorithm implementation.You can install these packages using the following command:
```bash
pip install -r requirements.txt
```## How to Run
Single Player Mode
To play the game in single-player mode, run the following command:
```bash
pip install run.py
```AI Mode
To watch the NEAT AI play the game, run the following command:
```bash
pip install run_ai.py
```The AI will start learning to play the game using the NEAT algorithm. You can observe the evolution process and how the AI improves over generations.