Skip to content

Commit eec49c8

Browse files
[queen-attack] SVG chess board (#2284)
* SVG chess board image with ASCII art fallback
1 parent 57f1387 commit eec49c8

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

exercises/queen-attack/description.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@ A chessboard can be represented by an 8 by 8 array.
88

99
So if you are told the white queen is at `c5` (zero-indexed at column 2, row 3) and the black queen at `f2` (zero-indexed at column 5, row 6), then you know that the set-up is like so:
1010

11-
```text
12-
a b c d e f g h
13-
8 _ _ _ _ _ _ _ _ 8
14-
7 _ _ _ _ _ _ _ _ 7
15-
6 _ _ _ _ _ _ _ _ 6
16-
5 _ _ W _ _ _ _ _ 5
17-
4 _ _ _ _ _ _ _ _ 4
18-
3 _ _ _ _ _ _ _ _ 3
19-
2 _ _ _ _ _ B _ _ 2
20-
1 _ _ _ _ _ _ _ _ 1
21-
a b c d e f g h
22-
```
11+
![A chess board with two queens. Arrows emanating from the queen at c5 indicate possible directions of capture along file, rank and diagonal.](https://assets.exercism.org/images/exercises/queen-attack/queen-capture.svg)
2312

2413
You are also able to answer whether the queens can attack each other.
2514
In this case, that answer would be yes, they can, because both pieces share a diagonal.
15+
16+
## Credit
17+
18+
The chessboard image was made by [habere-et-dispertire][habere-et-dispertire] using LaTeX and the [chessboard package][chessboard-package] by Ulrike Fischer.
19+
20+
[habere-et-dispertire]: https://exercism.org/profiles/habere-et-dispertire
21+
[chessboard-package]: https://github.com/u-fischer/chessboard

0 commit comments

Comments
 (0)