Skip to content

vivek-ram/Flappy-Bird-Using-Artificial-Intelligence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy-Bird-Using-Artificial-Intelligence

Created Flappy bird using pygame and neat.

Getting Started

These instructions will get you a copy of the project set up and running on your local machine

Prerequisites

What things you need to install the software and how to install them

Homebrew
Python3
Anaconda
pygame
neat

Installation for Mac and Windows

Mac

Install Homebrew

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Python3

brew install python

Install Anaconda for Python 3.7 from https://www.anaconda.com/distribution/

Install pygame

pip install pygame

Install neat

pip install neat-python

Running the test file

1)Go to the repository of the Flappy bird file in the terminal

2)Type python flappy_bird.py file

3)The file will execute

Note: you can change the population (pop_size) of birds by editing the info file if the population is less then it takes more generations to get better results and if we increase the population the training will get better for each generation and gets better results with less generations

Windows

1)Install Python3 in windows and check it is running updated version

2)Install Anaconda for Python 3.7 from https://www.anaconda.com/distribution/

3)Install pygame and neat with same mac commands

4)Go to the repository of the Flappy bird file in the terminal and run python flappy_bird.py file

Training with 5 Birds

Training with 10 Birds

Training with 20 Birds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages