Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 547 Bytes

File metadata and controls

8 lines (7 loc) · 547 Bytes

Genetic Algorithm Flappy Bird Using TensorFlowJS

Computer learns how to play flappy bird with the help of genetic algorithm. Try it here

How it works

  1. A population of birds is created. Each bird has a neural network attached to it. The weights of all the neural networks are initialised randomly
  2. Each bird has a score associated to it. The score is equal to the number of frames the bird survives.
  3. This score is used to find the fitness of each bird.