Now my program shows the numbers that tell us how many mines are surrounding that certain square (I have a feeling I was getting an error previously because I didn't do this part yet).
The code is very similar to the code I used to make the recursion (to reaveal the squares surrounding the square if they are not equal to 9) except that now the only thing inside the if statements is n++; to increase the total number of mines surrounding that square.
No comments:
Post a Comment