This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Constants to define the size of the game board | |
const ROWS = 8; | |
const COLS = 8; | |
const MINES = 10; | |
// A 2D array to represent the game board | |
const board = []; | |
// An array to keep track of the positions of mines on the board | |
const mines = []; |