This is a bonus part 5 of my evolutionary steering behaviors coding challenge. Here, I add a DOM checkbox to be enable/disable the debugging view of the sketch.

This challenge is part of the spring 2017 ITP “Intelligence and Learning” course (

Link to Part 1:
Link to Part 2:
Link to Part 3:
Link to Part 4:

Support this channel on Patreon:
To buy Coding Train merchandise:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
The Nature of Code Part 2 (Spring 2017) – Intelligence and Learning:
Repo for Autonomous Agents in p5.js:
Nature of Code:
Craig Reynolds’ Steering Behaviors:
My Video on Autonomous Agents and Steering:
My Genetic Algorithm Playlist:
My Video on Vectors in p5.js:

Source Code for the all Video Lessons:


For More Coding Challenges:
For More Intelligence and Learning:

Help us caption & translate this video!