Главная
Study mode:
on
1
- Brad's Intro
2
- Ania's Intro
3
- Recursion explainer
4
- Setting up our HTML
5
- Styling our Grid in CSS
6
- Setting up our JavaScript usng the DOM EventListener
7
- Creating our Board using .createElement() and .appendChild()
8
- Adding numbers to the board using Modulus and .contains()
9
- Checking what is under a Square usng .getAttribute() .innerHTML and .add()
10
- Checking neighbouring squares using recursion and setTimeout
11
- Adding flags to squares with a left click
12
- Checking for wins
Description:
Learn to create the classic Minesweeper game using vanilla JavaScript in this 48-minute tutorial. Explore recursion concepts and implement game functionality step-by-step. Begin with HTML setup and CSS grid styling, then dive into JavaScript DOM manipulation. Master techniques like creating the game board, adding numbers, checking square contents, implementing recursive neighbor checks, and handling user interactions. Develop skills in using methods such as createElement(), appendChild(), getAttribute(), and setTimeout(). By the end, gain the ability to build a fully functional Minesweeper game, complete with flag placement and win condition checks.

Build Minesweeper with JavaScript

Traversy Media
Add to list
0:00 / 0:00