| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Models.Piece
Documentation
Instances
| Arbitrary Piece Source # | |
| Storable Piece Source # | |
| Bounded Piece Source # | |
| Enum Piece Source # | |
| Show Piece Source # | |
| Eq Piece Source # | |
| Ord Piece Source # | |
| Hashable Piece Source # | |
Defined in Models.Piece | |
Instances
| Arbitrary Promotion Source # | |
| Storable Promotion Source # | |
Defined in Models.Piece | |
| Enum Promotion Source # | |
Defined in Models.Piece Methods succ :: Promotion -> Promotion # pred :: Promotion -> Promotion # fromEnum :: Promotion -> Int # enumFrom :: Promotion -> [Promotion] # enumFromThen :: Promotion -> Promotion -> [Promotion] # enumFromTo :: Promotion -> Promotion -> [Promotion] # enumFromThenTo :: Promotion -> Promotion -> Promotion -> [Promotion] # | |
| Show Promotion Source # | |
| Eq Promotion Source # | |
| Ord Promotion Source # | |
| Hashable Promotion Source # | |
Defined in Models.Piece | |
data CastlingRights Source #
pattern KnightProm :: Promotion Source #
pattern BishopProm :: Promotion Source #
getPieceValue :: Piece -> Word8 Source #
reverseColor :: Color -> Color Source #
charToCastlingRights :: Char -> Maybe (CastlingRights, Color) Source #