Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Describes the x-axis by which the board is indexed.
- AKA the file of a piece.
- N.B. this coordinate-system is for internal use only, and doesn't attempt to replicate any standard chess-notation.
Synopsis
- xLength :: X
- xMin :: X
- xMax :: X
- xBounds :: (X, X)
- xRange :: [X]
- bishopsFiles :: [X]
- kingsFile :: X
- toIx :: X -> Int
- fromIx :: Int -> X
- reflect :: X -> X
- translate :: (X -> X) -> X -> X
- maybeTranslate :: (X -> X) -> X -> Maybe X
- getAdjacents :: X -> [X]
- listArrayByAbscissa :: IArray a e => [e] -> a X e
- inBounds :: X -> Bool
Constants
bishopsFiles :: [X] Source #
The conventional starting files for the Bishops
of either logical colour.
Functions
getAdjacents :: X -> [X] Source #
Get the abscissae immediately left & right.
Constructors
listArrayByAbscissa :: IArray a e => [e] -> a X e Source #
Array-constructor.