Skip to content

euhan123/flappyAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEAT - Codeology Fall 2021

Setup

Installing Python

Make sure that you have Python 3.7.7 or higher:

python3 --version

Linux (Ubuntu)

sudo apt install python3

macOS

Download from this website: Python 3

Windows

Download from this website: Python 3

Clone the Repository

git clone https://github.com/allengu01/flappy-starter.git

Setting Up a Virtual Environment

Python virtual environments let us separate environments for each project we create. Why do we need them?

  • To control dependencies and their versions
  • To avoid installing packages globally. Instead, we'll be installing them within the virtual environment.
python3 -m venv .venv
source .venv/bin/activate

To deactivate an environment, use:

deactivate

Pygame

Pygame will be the package we use to create our game.

python3 -m pip install -U pygame
python3 -m pygame.examples.aliens

If running the demo game works, you're good to go.

NEAT-Python

NEAT-Python is a package that implements the NEAT (Neuro-Evolution of Augmenting Topologies) algorithm. The algorithm will be used to teach the machine how to play the game you develop.

pip install neat-python

About

Applied the NEAT algorithm to the game Flappy Bird to teach the computer to learn how to play and beat the game.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages