Coding Challenge #100: Neuroevolution Flappy Bird - Part 2
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 3: https://youtu.be/3lvj9jvERvs 📺 Neuroevolution Flappy Bird - Part 4: https://youtu.be/HrvNpbnjEG8 📺 Neuroevolution Flappy Bird - Part 5: https://youtu.be/U9wiMM3BqLU 🎥 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: 🔴 Codig Train Live 132: https://youtu.be/ipMekhLS2M0?t=4975s 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 2 of Flappy Bird--Incorporate a genetic algorithm 2:00 Make a population of birds 4:10 Delete a bird if it hits a pipe 5:57 Write a function for the next generation 7:58 Evaluate the fitness value for each bird 11:55 Pick a new bird 17:35 Write a mutate function 21:06 Pick a new bird based on its fitness 28:03 Conclusion and next steps 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
Download
0 formatsNo download links available.