Skip to content

Latest commit

 

History

History

019 - ML Flappy Bird

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ML Flappy Bird

Description

Flappy bird - the bird is learning to fly between the pipes by using Machine Learning and Genetic Algorithm to train it.

Link

You can see the version live on Codepen

Done

  • create Bird
  • create Pipes
  • add physics to Bird
  • add collision to Bird with the Pipes
  • allow the Bird to jump
  • reset game when the Bird collided with a Pipe
  • keep track of the score
  • keep track of the highest score
  • add Neural Network (aka a brain) to the Bird
  • train the Bird
  • create a population of Birds
  • add Genetic Algorithm to the Birds
  • create a slider to be able to control how fast the NN will learn
  • add bird "death" when hits the floor or ceiling
  • add text outside the canvas or make it visible
  • add nice graphics to the game

To do

  • switch to Brain.js for NN
  • add gif example

Credits