Minesweeper is a logic-based, single-player video game in which the player has to clear a rectangular board containing hidden mines without detonating any of them, with help from clues about the number of neighboring mines in each field. The game is played on a grid of squares, some of which …