MATLAB minesweeper function sol Board = mark Squares AdjTomines(sol Board) % Inputs: sol Board is a 2D array of integers in the range [0-9] & [11-13] % that represents the state of the player's board, where % 0: empty square %1-8: Squares with digits 1 to 8 % 9: mine square % 11: unrevealed square (square that is still flipped over) % 12: flagged mine square (player thinks there is mine a this square) % 13: exploded mine square (player picked a mine square) % Returns: sol Board is MODIFIED so that all adjacent squares to the mine % squares are marked with the correct digits b/n 1-8
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here