Skip to content

Instantly share code, notes, and snippets.

View hyalen's full-sized avatar
😀

Hyalen Neves Caldeira hyalen

😀
  • Belo Horizonte, Brazil
View GitHub Profile
// 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 = [];