Copyright | (c) Chris Penner 2019 |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
Click Source
on a function to see how it's implemented!
Documentation
constrainQueens :: Int -> Prop [PVar Set Coord] Source #
Given a number of queens, constrain them to not overlap
overlapping :: Coord -> Coord -> Bool Source #
Check whether two queens overlap with each other (i.e. could kill each other)
nQueensAll :: Int -> IO () Source #
Solve and print all possible solutions of an N-Queens puzzle This will include duplicates.