CS110 Chapter Notes - Chapter 7: Google Play, Pseudocode, Pygame
Document Summary
Minesweeper is a game in which player has to pick up grids that are not attached to explosive land mines (which are invisible until the player makes a mistake). There are grids that are safe to pick and each of them displays the number of land mines in their. Moore"s neighborhood (that involves their surrounding eight cells) as clues for the player to solve the game. The following shows the game gui of minesweeper avaiable on google. In order to simplify the problem, each grid is modelled as an object which consists of 2 attributes i. e. state and center_number i. e. attributes i. e. state and center_number i. e. number indicating the count of land mines in its. The state could be one of the following numbers: 0 => unknown (it is uncertain that it is safe or not) 1=> safe region (it does not consist of land mine but shows the number of land mines in its neighborhood)