Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.21 KB

readme.md

File metadata and controls

33 lines (22 loc) · 1.21 KB

FlappyBirdAI

FlappyBirdAI is a python implementation using pygame from tutorials of The Coding Train implementing NEAT algorithm using p5.js

Setup

If you want to give it a try you can clone the project

      git clone [email protected]:indiVar0508/FappyBirdAI.git

Install the requirements into your Python virtual environment, make sure you are in FlappyBirdAI directory

    python3 -m venv venv # create virtual environment
    source venv/bin/activate # activate virtual environment in terminal
    pip install -r requirements.txt

How to Play

If you want to run the game once your virtual environment is setup, you can simply run main.py file to intialize the prompt to start the game.

            python main.py

The prompt will give options to either play yourself where you can press S to play yourself, use Space bar as a signal to let bird jump in screen. if you want to see how ai Evolves using NeuroEvolution algorithm press A to let AI play the game and you can watch AI play the game.