You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/practice/minesweeper/.docs/instructions.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,20 @@
2
2
3
3
Add the mine counts to a completed Minesweeper board.
4
4
5
-
Minesweeper is a popular game where the user has to find the mines using
6
-
numeric hints that indicate how many mines are directly adjacent
7
-
(horizontally, vertically, diagonally) to a square.
5
+
Minesweeper is a popular game where the user has to find the mines using numeric hints that indicate how many mines are directly adjacent (horizontally, vertically, diagonally) to a square.
8
6
9
-
In this exercise you have to create some code that counts the number of
10
-
mines adjacent to a given empty square and replaces that square with the
11
-
count.
7
+
In this exercise you have to create some code that counts the number of mines adjacent to a given empty square and replaces that square with the count.
12
8
13
-
The board is a rectangle composed of blank space (' ') characters. A mine
14
-
is represented by an asterisk ('\*') character.
9
+
The board is a rectangle composed of blank space (' ') characters.
10
+
A mine is represented by an asterisk (`*`) character.
15
11
16
12
If a given space has no adjacent mines at all, leave that square blank.
17
13
18
14
## Examples
19
15
20
-
For example you may receive a 5 x 4 board like this (empty spaces are
21
-
represented here with the '·' character for display on screen):
16
+
For example you may receive a 5 x 4 board like this (empty spaces are represented here with the '·' character for display on screen):
22
17
23
-
```
18
+
```text
24
19
·*·*·
25
20
··*··
26
21
··*··
@@ -29,7 +24,7 @@ represented here with the '·' character for display on screen):
0 commit comments