Need help with FlappyLearning?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

xviniette
3.9K Stars 475 Forks MIT License 30 Commits 12 Opened issues

Description

Program learning to play Flappy Bird by machine learning (Neuroevolution)

Services available

!
?

Need anything else?

Contributors list

# 21,200
HTML
Machine...
neuroev...
JavaScr...
17 commits
# 73,941
Webpack
scaffol...
elm
neuroev...
2 commits

Flappy Learning (Demo)

Program that learns to play Flappy Bird by machine learning (Neuroevolution)

alt tag

NeuroEvolution.js : Utilization

// Initialize
var ne = new Neuroevolution({options});

//Default options values var options = { network:[1, [1], 1], // Perceptron structure population:50, // Population by generation elitism:0.2, // Best networks kepts unchanged for the next generation (rate) randomBehaviour:0.2, // New random networks for the next generation (rate) mutationRate:0.1, // Mutation rate on the weights of synapses mutationRange:0.5, // Interval of the mutation changes on the synapse weight historic:0, // Latest generations saved lowHistoric:false, // Only save score (not the network) scoreSort:-1, // Sort order (-1 = desc, 1 = asc) nbChild:1 // number of child by breeding }

//Update options at any time ne.set({options});

// Generate first or next generation var generation = ne.nextGeneration();

//When an network is over -> save this score ne.networkScore(generation[x], );

You can see the NeuroEvolution integration in Flappy Bird in Game.js.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.