http://gameswizard.com/j_jvmine.html(a) As an example, the assertion that there are exactly three mines adjacent to [1,1] would be
X1,2 ^ X2,2 ^ X2,1Note that cells in this world are numbered from 1, so that [1,1] is the lower left corner cell. Specifically, there is no [0,0] cell.
(b) You are to do this for a general cell (not just [1,1]). However, you can use words or symbols to represent the formula implicitly rather than explicitly.
To understand the difference between implicit and explicit, examine the following example from C++. An explicit definition of an array isint a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};An implicit definition of the same array isfor (i=0; i<10; i++) { a[i] = i+1; }Implicit mathematical definitions of the same array are as follows:1, 2, ..., 10 // symbols The integers between 1 and 10, inclusive // verbally
(f) This might be a little hard, even if you've played Minesweeper before. Here's a hint (though it's not an Nx1 board):
12221 COULD BE 12221 OR 12221 ***** X-XX- -XX-X where * denotes "don't know," X denotes a bomb, and - denotes no bomb.