Minesweeper Have you ever played Minesweeper? This cute little game comes with a certain operating system whose name we can't remember. The goal of the game is to find where all the mines are located within a M x N field. The game shows a number in a square which tells you how many mines there are adjacent to that square. Each square has at most eight adjacent squares. The 4 x 4 field on the left contains two mines, each represented by a ``*'' character. If we represent the same field by the hint numbers described above, we end up with the field on the right: *... .... .*.. .... *100 2210 1*10 1110
翻译:你玩过扫雷吗?这个可爱的小游戏附带了一个我们记不得名字的操作系统。游戏的目标是找出所有的地雷都在一个M×N的区域内。游戏在一个正方形中显示一个数字,它告诉你在这个正方形附近有多少地雷。每个方块最多有八个相邻方块。“4”在左边的字段中包含两个由“4”表示的地雷。如果我们用上面描述的提示数字来表示同一个字段,那么右边的字段就是:。*.. .... *100 2210 1*10 1110