Skip to content

allengu01/flappy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy - Codeology Fall 2021

Flappy is a game dev + AI project that uses the NEAT (Neuroevolution of Augmenting Topologies) algorithm to train a neural net for playing Flappy Bird.

Member Projects


Each member chose an extension to the original project and made it their own! See the results below:

Ash Chang - https://github.com/ashchangg/flappy_special

Ernest Goh - https://github.com/ernestggoh/SpaceInvadersNEAT

Ramya Chitturi - https://github.com/r-chitturi/flappy_NEAT_qlearning

Euhan Kim - https://github.com/euhan123/NEAT-SpaceInvaders

Maya Zheng - https://github.com/mayaz8h/jetpackjoyride0

Tutorial


Find the tutorial on Notion here!

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

// Not finished yet

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages