diff options
author | Steven <steven.vasilogianis@gmail.com> | 2019-05-29 20:06:05 -0400 |
---|---|---|
committer | Steven <steven.vasilogianis@gmail.com> | 2019-05-29 20:06:05 -0400 |
commit | cbe440bb0adbfbccfdbbcedb29bf9408c0596866 (patch) | |
tree | 5b040044f331d82845fc0b68386d8d285dad1949 /src/8queens.hs |
Initial repository; needs clean up but it's working so let's not lose it
Diffstat (limited to 'src/8queens.hs')
-rw-r--r-- | src/8queens.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/8queens.hs b/src/8queens.hs new file mode 100644 index 0000000..e8020ed --- /dev/null +++ b/src/8queens.hs | |||
@@ -0,0 +1,18 @@ | |||
1 | module EightQueens | ||
2 | ( | ||
3 | main | ||
4 | ) where | ||
5 | |||
6 | --import Linear.Vector | ||
7 | import Linear.V2 | ||
8 | --import Linear.V3 | ||
9 | import Control.Lens | ||
10 | |||
11 | data Square = X | Q | ||
12 | |||
13 | board = V2 <$> [0..8] <*> [0..8] | ||
14 | --board = V3 <$> [0..8] <*> [0..8] <*> [X] | ||
15 | row p = undefined | ||
16 | |||
17 | main = undefined | ||
18 | --main = repeat 8 placeQueen $ board | ||