Skip to content

Commit 0cd2dc4

Browse files
authored
Sync docs for practice exercise minesweeper (exercism#2453)
1 parent c26e095 commit 0cd2dc4

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

exercises/practice/minesweeper/.docs/instructions.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,20 @@
22

33
Add the mine counts to a completed Minesweeper board.
44

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.
86

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.
128

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.
1511

1612
If a given space has no adjacent mines at all, leave that square blank.
1713

1814
## Examples
1915

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):
2217

23-
```
18+
```text
2419
·*·*·
2520
··*··
2621
··*··
@@ -29,7 +24,7 @@ represented here with the '·' character for display on screen):
2924

3025
And your code will transform it into this:
3126

32-
```
27+
```text
3328
1*3*1
3429
13*31
3530
·2*2·

0 commit comments

Comments
 (0)