Skip to content

mcjcloud/FlappyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FlappyBot

The original game is created by Daniel Shiffman. http://codingtra.in

This version is modified to be played by an Artificial Neural Network.

Demo

How it works

This Flappy Bird clone is played by an ANN which uses a genetic algorithm to train. The algorithm trains by selecting the highest performing network out of a population and making those traits more likely to occur in future "generations," slowly increasing the average fitness of the AI over time.

How to install

  1. Clone the repository git clone https://github.com/mcjcloud/FlappyBot.git
  2. Run npm install in both the Flappy-Bird-Clone and nn directories
  3. Install an http-server: npm install -g http-server
  4. From the Flappy-Bird-Clone directory, run http-server
  5. From the nn directory, run http-server
  6. Navigate to whatever address the Flappy-Bird-Clone http server is serving on.

Note: You can change the port that the Flappy Bird game looks for the neural network code on in Flappy-Bird-Clone/index.html

About

A Flappy Bird game played by an Artificial Neural Network.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published