Introduction - If you have any usage issues, please Google them yourself
This subject, to do an N x M minesweeper game, each box contains two states: shut down (closed) and open (opened), initialization, each box is closed, the box will be an opencontains two states: a digital (clue) and a mine (bomb). You can open (open) a box, if you open a bomb, then fail otherwise it will open a number, this number is located in [0,8] is an integer, the number represents all of its neighbors grid mine the number of neighboring squares contained in the application of this information can help you mine clearance.