https://github.com/vimichael/aiflappybird
A.I. Flappy Bird clone written for a Seattle University A.n.I.Ma.L club presentation.
https://github.com/vimichael/aiflappybird
ai machine-learning pygame python
Last synced: 10 months ago
JSON representation
A.I. Flappy Bird clone written for a Seattle University A.n.I.Ma.L club presentation.
- Host: GitHub
- URL: https://github.com/vimichael/aiflappybird
- Owner: vimichael
- Created: 2024-05-20T18:28:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T23:57:16.000Z (over 1 year ago)
- Last Synced: 2025-02-16T02:41:46.781Z (11 months ago)
- Topics: ai, machine-learning, pygame, python
- Language: Python
- Homepage:
- Size: 4.46 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI Flappy Bird
A.I. Flappy bird project made for the Seattle University A.n.I.Ma.L club.

# Repo Roadmap
- `main_solo.py` is a solo version of the game that you can play
- `main_ai.py` is the version adapted to train an A.I.
- `config.txt` is the config file that __NEAT__ uses.
- `score.txt` is the high score of the solo game!
# Explanation
For a general explanation of what's going on, see: [explanation.md](explanation.md)
# Setup
Clone the repository:
```bash
git clone https://github.com/m1chaelwilliams/aiflappybird
```
## Open in it in a code editor (recommended):
For __VS Code__:
```bash
code .
```
## Open a terminal in the root directory of the project and create a virtual environment:
For Windows:
```bash
python -m venv .venv
```
For Mac:
```bash
python3 -m venv .venv
```
## Activate your virtual environment:
For Windows:
```bash
.venv/bin/activate
```
For Mac:
```bash
source .venv/bin/activate
```
## Install the dependencies with pip (pip3 for mac):
```bash
pip install pygame-ce
pip install neat-python
```
## Run the project!
For Windows:
```bash
python -m main_(solo/ai)
```
For Mac:
```bash
python3 -m main_(solo/ai).py
```
## Credits
The __A.I.__ portion of this repository is 99% a port of Tech with Tim's [video series](https://youtube.com/playlist?list=PLzMcBGfZo4-lwGZWXz5Qgta_YNX3_vLS2&si=2zazEkI7Tu0zfd8K).