Coding Challenge #29: Smart Rockets in p5.js

The Coding Train
The Coding Train
403 هزار بار بازدید - 8 سال پیش - In this coding challenge, I
In this coding challenge, I implement a "smart rockets" algorithm (based on a simulation by Jer Thorp). Code: https://thecodingtrain.com/challenges...

🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...

🎥 Previous video: Coding Challenge #28: Metaballs
🎥 Next video: Coding Challenge #30: Phyllotaxis
🎥 All videos: Coding Challenges

Videos:
🎥 My Genetic Algorithm playlist: 9: Genetic Algorithms - The Nature of...
🔴 Livestream Archive: Live Stream #53 - Smart Rockets, Code...

Related Coding Challenges:
🚂 #69 Evolutionary Steering Behaviors: Coding Challenge #69: Evolutionary St...
🚂 #100 Neuroevolution Flappy Bird: Coding Challenge #100: Neuroevolution...
🚂 #147 Chrome Dinosaur Game: Coding Challenge #147: Chrome Dinosau...

Timestamps:
0:00 Introduction
3:10 Rocket object
7:07 Population object
10:48 DNA object
15:09 Add target
17:24 Evaluate function
19:35 Mating pool
23:26 Selection function
25:36 Crossover function
33:56 Is the genetic algorithm working?
35:50 Check if rocket has reached target
38:05 Mutation function
40:17 Add obstacle
43:34 Check if rocket hits canvas edges
46:55 Conclusion and possible improvements

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: Discord: discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: Twitter: thecodingtrain
📸 Instagram: Instagram: the.coding.train

🎥 Coding Challenges: Coding Challenges
🎥 Intro to Programming: Start learning here!

🔗 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-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#geneticalgorithm #dna #evolutionaryalgorithm #p5js #javascript
8 سال پیش در تاریخ 1395/05/12 منتشر شده است.
403,050 بـار بازدید شده
... بیشتر