According to the rules, when a cell without adjacent mines is revealed,
the game reveals the "unmined" area up to cells with mined
neighbors. Let's implement it... I suggest using recursion. It is used
when the algorithm for solving the problem is the same as the algorithm for solving part of the p
Minesweeper (Part 9/16)
- 3
Locked
Comments (6)
- Popular
- New
- Old
You must be signed in to leave a comment
Richi
27 November 2020, 22:53
sorry for this error.
I already solved my problem
0
Richi
20 November 2020, 18:41
Last condition not met! but why? the programm does exactly what it shoud.
0
Roman
23 November 2020, 06:15
Please post your question with the attached solution in the section Help.
0
Mike Taylor
7 February 2020, 21:02
My code currently doesn't pass anything on requirements list.
In the "openTile" method, I'm attempting to solve by calling recursively from list of "getNeighbors" (lines 58-60). Looking at other people's questions I see they coded explicitly which becomes lengthy.
I could do similarly, but would really like to do proper recursion. Thanks
0
Mateo
12 July 2019, 16:55
Can somebody explain the lasts condition:
The openTile(int, int) method must not call anything if the element is not a mine and has no mined neighbors. Use an empty string.
Its equal to first one
0
Roman
15 July 2019, 13:51
I think, correct phrase is
The openTile(int, int) method must not display anything if the element is not a mine and has no mined neighbors. Use an empty string.
+1