CS110 Chapter Notes - Chapter 7: Google Play, Pseudocode, Pygame

55 views6 pages

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)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents