Skip to content

Commit a6e4566

Browse files
authored
Merge pull request #336 from rbasso/queen-attack-move-hints
queen-attack: Move hints to HINTS.md
2 parents 0f86450 + 7680e63 commit a6e4566

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

exercises/queen-attack/HINTS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Hints
2+
3+
To complete this exercise, you need to implement the following functions:
4+
5+
- `boardString`
6+
- `canAttack`
7+
8+
You will find the type signatures already in place, but it is up to you
9+
to define the functions.
10+
11+
Positions are specified as two-tuples:
12+
13+
- The first element is the row (rank in Chess terms).
14+
- The second element is is the column (file in Chess terms).
15+
- (0, 0) is the top left of the board, (0, 7) is the upper right,
16+
- (7, 0) is the bottom left, and (7, 7) is the bottom right.

exercises/queen-attack/src/Queens.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
module Queens (boardString, canAttack) where
22

3-
-- Positions are specified as two-tuples.
4-
-- The first element is the row (rank in Chess terms).
5-
-- The second element is is the column (file in Chess terms).
6-
-- (0, 0) is the top left of the board, (0, 7) is the upper right,
7-
-- (7, 0) is the bottom left, and (7, 7) is the bottom right.
8-
93
boardString :: Maybe (Int, Int) -> Maybe (Int, Int) -> String
104
boardString white black = undefined
115

0 commit comments

Comments
 (0)