Skip to content

sergei202/flappy-bird

Repository files navigation

Flappy Bird

Screenshot

This is a simple demo that uses neuro-evolution to how to play Flappy Bird.

The genetic algorithm uses basic crossover and a mutation rate of 1%.

TensorFlow.js controls the NN:

  • 2 inputs: How far away is the nearest pipe and what far off center
  • 4 hidden neurons
  • 1 output neuron: This controls the bird flapping

Demo

https://sergei202.com/flappy-bird/

You can also use the space bar to try to beat the network!

Run

  • npm install
  • npm start

About

Flappy Bird ML using neuro-evolution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published