Safe Haskell | None |
---|---|
Language | Haskell2010 |
- pointValue :: Piece -> Int
- movingVectors :: Piece -> [MovingVector Int]
- movingVectors' :: Piece -> Color -> [MovingVector Int]
- multiMovePiece :: Piece -> Bool
- piecePoints :: Board -> Color -> Int
- piecePoints' :: Board -> Color -> Piece -> Int
- materialScore :: Board -> Int
- evaluate :: Board -> Int
Documentation
pointValue :: Piece -> Int #
Section 3, "Programming a Computer for Playing Chess" By Claude E. Shannon.
movingVectors :: Piece -> [MovingVector Int] #
Determines the directions a Piece
can move in one step.
Does not work for pawns, since their directional vector differs depending on
color. Use "movingVectors'" if you know the color.
movingVectors' :: Piece -> Color -> [MovingVector Int] #
Determines the directions a Piece
can go
multiMovePiece :: Piece -> Bool #
Can the piece move more than one square?
piecePoints :: Board -> Color -> Int #
materialScore :: Board -> Int #
Section 3, "Programming a Computer for Playing Chess" By Claude E. Shannon.