ScratchData LogoScratchData
Back to Zro716's profile

Minesweeper Solver

ZRZro716•Created May 2, 2016
Minesweeper Solver
48
28
1349 views
View on Scratch

Description

>bored at college >english teacher is playing minesweeper >expert mode >too_confusing_for_new_scratchers.mp3 >lightbulb over head >make a computer solve it >success How to solve any minesweeper board: 1. Pick a spot to start. Minesweeper will always give you clearance on your first move. 2. For every "numbered" cell, determine how many surrounding cells are hidden and how many known cells are defused mines. Then... a) If the value of a cell = hidden cells minus defused mines, defuse all hidden surrounding cells b) If the value of the cell = # of defused mines, toggle all hidden surrounding cells Keep repeating step 2 until you have to make another guess (which is highly unlikely for easier boards). Guess and continue with repeating step 2 until all mines are defused.

Project Details

Project ID107896536
CreatedMay 2, 2016
Last ModifiedMay 21, 2016
SharedMay 4, 2016
Visibilityvisible
CommentsAllowed