Deepwatch

Keyboard shortcuts

Space or k
Play or pause
j and l
Back or forward 10 seconds
Left and right arrows
Back or forward 5 seconds
f
Fullscreen
m
Mute or unmute
Shift and < or >
Slower or faster
?
Show or hide this list

Coding Challenge #100: Neuroevolution Flappy Bird - Part 4

The Coding Train, 15 min, 34.6K views, Apr 23, 2018

Chapters

Show description

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 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: šŸ”“ Coding Train Live 133: https://youtu.be/emjv5tr-m7Q?t=1237s 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 4 of Flappy Bird--Incorporate features suggested on Github 2:27 Add y velocity to the inputs 4:37 Fixing the algorithm that detects the closest pipe 7:09 Remove a bird when it hits the bottom 9:40 Make game harder by decreasing the spacing between the pipes 12:40 Optional feature: a bird can only jump if moving down 14:47 Conclusion and goal of the last part of this challenge 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

When you're done