Coding Challenge #69: Evolutionary Steering Behaviors - Part 1

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=flxOkx0yLrY



Duration: 23:58
101,543 views
1,893


In this multi-part coding challenge, I create a system where autonomous steering agents evolve the behavior of eating food and avoiding poison. Code: https://thecodingtrain.com/challenges/69-evolutionary-steering-behaviors

๐Ÿ•น๏ธ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/xgQNXkxx1

Other Parts of this Challenge:
๐Ÿ“บ Evolutionary Steering Behaviors Part 2: https://youtu.be/XaOVH8ZSRNA
๐Ÿ“บ Evolutionary Steering Behaviors Part 3: https://youtu.be/vZUWTlK7D2Q
๐Ÿ“บ Evolutionary Steering Behaviors Part 4: https://youtu.be/ykOcaInciBI
๐Ÿ“บ Evolutionary Steering Behaviors - Part 5 (Bonus): https://youtu.be/VnFF5V5DS8s

๐ŸŽฅ Previous video: https://youtu.be/piBq7VD0ZSo?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
๐ŸŽฅ Next video: https://youtu.be/N8Fabn1om2k?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
๐ŸŽฅ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
๐Ÿ’พ Repo for Autonomous Agents in p5.js: https://github.com/nature-of-code/noc-examples-p5.js/blob/master/chp06_agents/NOC_6_01_Seek/vehicle.js
๐Ÿ“• The Nature of Code Part 2 (Spring 2017) - Intelligence and Learning: https://github.com/shiffman/NOC-S17-2-Intelligence-Learning
๐Ÿ“• Nature of Code: http://natureofcode.com/
๐Ÿš— Steering Behaviors: http://www.red3d.com/cwr/steer/
๐Ÿงฌ My Genetic Algorithm Playlist: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV

Videos:
๐Ÿš‚ My Video on Autonomous Agents and Steering: https://www.youtube.com/watch?v=P_xJMH8VvAE
๐Ÿš‚ My Video on Vectors in p5.js: https://www.youtube.com/watch?v=vqE8DMfOajk
๐Ÿš‚ My Video on How to go Through an Array Backwards: https://youtu.be/HXOD_XDA-KU
๐Ÿš‚ My Genetic Algorithm Playlist: https://www.youtube.com/watch?v=9zfeTw-uFCw&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV
๐Ÿ”ด Coding Train Live 89: https://youtu.be/qzFlnX-z38U?t=2471s

Related Coding Challenges:
๐Ÿš‚ #59 Steering Behaviors: https://youtu.be/4hA7G3gup-4
๐Ÿš‚ #124 Flocking Simulation: https://youtu.be/mhjuuHl6qHM

Timestamps:
0:00 Introducing today's topic: Evolutionary Steering Behavior
1:30 Map out the ecosystem
5:41 Steering behaviors
8:36 Let's Code!
12:00 Add a food array
14:06 Add a eat function
19:16 Remove a food element if it has been eaten
20:38 Add a poison array
22:57 What do I need to do next?

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

#geneticalgorithms #steeringbehaviors #seekfunction #autonomousagent #evolution #javascript #p5js







Tags:
JavaScript (Programming Language)
programming
daniel shiffman
creative coding
coding challenge
tutorial
coding
challenges
coding train
the coding train
nature of code
artificial intelligence
live stream
itp
itp nyu
neural network
intelligence creative coding
intelligence and learning
genetic algorithm
steering behavior
autonomous agent
evolution code
p5.js
evolution steering behaviors
evolution steering agents
evolution nature of code