Minesweeper using ReactJs


Minesweeper Rules

  1. Mines are randomly placed in the matrix
  2. Numbered cells have mines around them, equal to the number
  3. No mines around empty cells
  4. User can right click a cell to flag as a mine.
  5. User can left click a cell to open the cell
  6. The game is over if a cell with mine is opened

Challenges

  1. Generating numbered cells
  2. Randomly generating mines
  3. Managing states of each cell
  4. Recursively open neighboring cells when opened cell is an empty one

Generating numbered cells

TBD

Randomly generating mines

TBD

Managing states of each cell

TBD

Recursively open neighboring cells when opened cell is an empty one

TBD

Fork me on GitHub