The original game is created by Daniel Shiffman. http://codingtra.in
This version is modified to be played by an Artificial Neural Network.
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.
- Clone the repository
git clone https://github.com/mcjcloud/FlappyBot.git
- Run
npm install
in both theFlappy-Bird-Clone
andnn
directories - Install an http-server:
npm install -g http-server
- From the
Flappy-Bird-Clone
directory, runhttp-server
- From the
nn
directory, runhttp-server
- 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