Safe Haskell | None |
---|---|
Language | Haskell2010 |
- isOnBoard :: (Num a, Bits a) => a -> Bool
- index :: Board -> Position -> Cell
- emptyCell :: Position -> Board -> Board
- updateCell :: Position -> Cell -> Board -> Board
- isEmptyCell :: Cell -> Bool
- everyPiece :: Board -> Color -> Vector (Position, Cell)
- move :: Position -> Position -> Board -> Board
- initialBoard :: Board
- prettyPrintBoard :: Board -> String
- prettyPrintCells :: [Cell] -> String
Documentation
isEmptyCell :: Cell -> Bool #
everyPiece :: Board -> Color -> Vector (Position, Cell) #
Get a list of every piece owned by a side, and the position it is at.
This is inefficient right now.
initialBoard :: Board #
prettyPrintBoard :: Board -> String #
prettyPrintCells :: [Cell] -> String #