In this challenge, I attempt to code the classic game Minesweeper in JavaScript with the p5.js library. This video builds on some previous tutorials related to the Prototypes and multi-dimensional arrays in JavaScript.

Link to the code:

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:
Minesweeper on Wikipedia:
Minesweeper suggestion on GitHub:
Flood fill on Wikipedia:

Related tutorials:
2D Arrays in JavaScript:
Prototypes in JavaScript:

Source Code for the all Video Lessons:


For More Classic Video Games:
For More Coding Challenges:
For an Intro to Programming using p5.js:

Help us caption & translate this video!