In this live episode, I code the classic video game Minesweeper in JavaScript using the p5.js library. I also answer viewer submitted questions.

Edited video from this live stream coming soon!

38:02 – Coding Challenge: Minesweeper
1:32:45 – Conclusion/Q&A
1:57:58 – Recording intro to Coding Challenge

Support this channel on Patreon:
To buy Coding Train merchandise:
To Support the Processing Foundation:

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:
K – Nearest Neighbor Remix:
Perlin Noise Song:
The Coding Train subreddit:
Minesweeper on Wikipedia:
Minesweeper suggestion on GitHub:
GitHub’s Student Developer Pack:
Fog Creek:
Jenn Schiffer on Twitter:
Flood fill on Wikipedia:
ITP Spring Show 2017:
Mike Bostock’s Visualizing Algorithms:
Simple p5 Neural Network on GitHub:

Videos discussed in this live stream:
Hosting p5.js Sketches with GitHub Pages:
2D Arrays in JavaScript:
Prototypes in JavaScript:

Source Code for the all Video Lessons:


For an Introduction to Programming:
For my Nature of Code videos:
For More Live Streams:
For More Coding Challenges:

Help us caption & translate this video!