Coding Challenge #100: Neuroevolution Flappy Bird - Part 5
In this challenge, I use my JavaScript neural network library and a genetic algorithm to train an agent to play Flappy Bird. Code: https://thecodingtrain.com/challenges/100-neuroevolution-flappy-bird
p5.js Web Editor Sketches:
πΉοΈ Neuroevolution Flappy Bird: https://editor.p5js.org/codingtrain/sketches/wb-QHVXBq
πΉοΈ Neuroevolution Flappy Bird -- Part 5: https://editor.p5js.org/codingtrain/sketches/iyPZnViI9
πΉοΈ Flappy Bird - Improved code: https://editor.p5js.org/codingtrain/sketches/T_cecG2MD
Other Parts of this Challenge:
πΊ Neuroevolution Flappy Bird - Part 1: https://youtu.be/c6y21FkaUqw
πΊ Neuroevolution Flappy Bird - Part 2: https://youtu.be/YtRA6tqgJBc
πΊ Neuroevolution Flappy Bird - Part 3: https://youtu.be/3lvj9jvERvs
πΊ Neuroevolution Flappy Bird - Part 4: https://youtu.be/HrvNpbnjEG8
π₯ Previous video: https://youtu.be/KtPpoMThKUs?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/fUkF-YLLXeg?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π» TensorFlow.js: https://js.tensorflow.org/
π» ml5.js: https://github.com/ml5js
π» JS Neural Network: https://github.com/CodingTrain/Toy-Neural-Network-JS/
π» Flappy Bird Clone: https://github.com/CodingTrain/Flappy-Bird-Clone
π» Neuroevolution documentation: https://github.com/shiffman/NOC-S18/tree/master/week10
Videos:
π Coding Challenge #31: Flappy Bird: https://youtu.be/cXgA1d_E-jY
π My Genetic Algorithm playlist: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV
π My Neural Networks playlist: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6aCibgK1PTWWu9by6XFdCfh
Live Stream Archive:
π΄ Coding Train Live 133: https://youtu.be/emjv5tr-m7Q?t=2984s
Related Coding Challenges:
π #29 Smart Rockets in p5.js: https://youtu.be/bGz7mv2vD6g
π #31 Flappy Bird: https://youtu.be/cXgA1d_E-jY
π #41 Clappy Bird: https://youtu.be/aKiyCeIuwn4
Timestamps:
0:00 Part 5 of Flappy Bird--Save/Load a Bird
6:42 Use SaveJSON to save the weights of the neural network
9:39 Save the weights of the best bird
10:41 Remove genetic algorithm and load the neural network of the best bird
15:23 Load a "good" and a "bad" bird and compare their collisions
17:28 Conclusion and possibilities for refinements
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://thecodingtrain.com/discord
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#neuralnetwork #reinforcementlearning #geneticalgorithm #evolution #flappybird #javascript #p5js
Other Videos By The Coding Train
Other Statistics
Flappy Bird Statistics For The Coding Train
At present, The Coding Train has 1,474,832 views spread across 8 videos for Flappy Bird, and about 8 hours worth of Flappy Bird videos were uploaded to his channel. This is less than 0.84% of the total video content that The Coding Train has uploaded to YouTube.