|
1 | 1 | # Instructions |
2 | 2 |
|
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. |
6 | 5 |
|
7 | 6 | ## Requirements |
8 | 7 |
|
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. |
20 | 19 |
|
21 | 20 | ## Examples |
22 | 21 |
|
|
0 commit comments