Skip to content

queen-attack: Move hints to HINTS.md #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions exercises/queen-attack/HINTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Hints

To complete this exercise, you need to implement the following functions:

- `boardString`
- `canAttack`

You will find the type signatures already in place, but it is up to you
to define the functions.

Positions are specified as two-tuples:

- The first element is the row (rank in Chess terms).
- The second element is is the column (file in Chess terms).
- (0, 0) is the top left of the board, (0, 7) is the upper right,
- (7, 0) is the bottom left, and (7, 7) is the bottom right.
6 changes: 0 additions & 6 deletions exercises/queen-attack/src/Queens.hs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
module Queens (boardString, canAttack) where

-- Positions are specified as two-tuples.
-- The first element is the row (rank in Chess terms).
-- The second element is is the column (file in Chess terms).
-- (0, 0) is the top left of the board, (0, 7) is the upper right,
-- (7, 0) is the bottom left, and (7, 7) is the bottom right.

boardString :: Maybe (Int, Int) -> Maybe (Int, Int) -> String
boardString white black = undefined

Expand Down