Skip to content

Commit c5b8ac3

Browse files
authored
Sync docs for practice exercise diamond (exercism#2471)
1 parent 53187ed commit c5b8ac3

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

exercises/practice/diamond/.docs/instructions.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
# Instructions
22

3-
The diamond kata takes as its input a letter, and outputs it in a diamond
4-
shape. Given a letter, it prints a diamond starting with 'A', with the
5-
supplied letter at the widest point.
3+
The diamond kata takes as its input a letter, and outputs it in a diamond shape.
4+
Given a letter, it prints a diamond starting with 'A', with the supplied letter at the widest point.
65

76
## Requirements
87

9-
* The first row contains one 'A'.
10-
* The last row contains one 'A'.
11-
* All rows, except the first and last, have exactly two identical letters.
12-
* All rows have as many trailing spaces as leading spaces. (This might be 0).
13-
* The diamond is horizontally symmetric.
14-
* The diamond is vertically symmetric.
15-
* The diamond has a square shape (width equals height).
16-
* The letters form a diamond shape.
17-
* The top half has the letters in ascending order.
18-
* The bottom half has the letters in descending order.
19-
* The four corners (containing the spaces) are triangles.
8+
- The first row contains one 'A'.
9+
- The last row contains one 'A'.
10+
- All rows, except the first and last, have exactly two identical letters.
11+
- All rows have as many trailing spaces as leading spaces. (This might be 0).
12+
- The diamond is horizontally symmetric.
13+
- The diamond is vertically symmetric.
14+
- The diamond has a square shape (width equals height).
15+
- The letters form a diamond shape.
16+
- The top half has the letters in ascending order.
17+
- The bottom half has the letters in descending order.
18+
- The four corners (containing the spaces) are triangles.
2019

2120
## Examples
2221

0 commit comments

Comments
 (0)