A Flappy Bird Game Trained( With Genetic algorithm for 10 Generations to a max of Score 30) to play by itself or user.
Either Use the trained model to play the game or Train a model before playing.
Note: The model is set for the current playing conditions and might vary with different conditions.
Run the Following commands in the command line before starting:
- python3 -m venv venv
- source venv/bin/activate
- pip3 install -r requirements.txt
check this article to fix it
pygame/pygame#1536 (comment)
RUN: python3 Flappy_Train.py
RUN: python3 Flappy_Game.py
- Use
UP arrow
key to move up - Press
Spacebar
if you feel like not playing the game and let AI handle the rest
- Feel Free to reach out to my email-id or github issues to contact