chessIO 0.9.3.0 → 0.9.3.1
raw patch · 6 files changed
+9/−5 lines, 6 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Game.Chess.PGN: annPly :: forall a_a19M1 a_a19Vt. Lens (Annotated a_a19M1) (Annotated a_a19Vt) a_a19M1 a_a19Vt
+ Game.Chess.PGN: annPly :: forall a_a1a0V a_a1abF. Lens (Annotated a_a1a0V) (Annotated a_a1abF) a_a1a0V a_a1abF
- Game.Chess.PGN: annPrefixNAG :: forall a_a19M1. Lens' (Annotated a_a19M1) [Int]
+ Game.Chess.PGN: annPrefixNAG :: forall a_a1a0V. Lens' (Annotated a_a1a0V) [Int]
- Game.Chess.PGN: annSuffixNAG :: forall a_a19M1. Lens' (Annotated a_a19M1) [Int]
+ Game.Chess.PGN: annSuffixNAG :: forall a_a1a0V. Lens' (Annotated a_a1a0V) [Int]
- Game.Chess.Polyglot: beKey :: forall a_a1hXj. Lens' (BookEntry a_a1hXj) Word64
+ Game.Chess.Polyglot: beKey :: forall a_a1iLE. Lens' (BookEntry a_a1iLE) Word64
- Game.Chess.Polyglot: beLearn :: forall a_a1hXj. Lens' (BookEntry a_a1hXj) Word32
+ Game.Chess.Polyglot: beLearn :: forall a_a1iLE. Lens' (BookEntry a_a1iLE) Word32
- Game.Chess.Polyglot: bePly :: forall a_a1hXj a_a1imx. Lens (BookEntry a_a1hXj) (BookEntry a_a1imx) a_a1hXj a_a1imx
+ Game.Chess.Polyglot: bePly :: forall a_a1iLE a_a1ja0. Lens (BookEntry a_a1iLE) (BookEntry a_a1ja0) a_a1iLE a_a1ja0
- Game.Chess.Polyglot: beWeight :: forall a_a1hXj. Lens' (BookEntry a_a1hXj) Word16
+ Game.Chess.Polyglot: beWeight :: forall a_a1iLE. Lens' (BookEntry a_a1iLE) Word16
Files
- ChangeLog.md +4/−0
- book/twic-9g.bin too large to diff
- chessIO.cabal +2/−2
- src/Game/Chess/Internal.hs +1/−1
- src/Game/Chess/Internal/QuadBitboard.hs +1/−1
- src/Game/Chess/SAN.hs +1/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ # Releases +## chessIO 0.9.3.1++- Update internal book+ ## chessIO 0.9.3.0 - Builds with GHC 9.2.1
book/twic-9g.bin view
file too large to diff
chessIO.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.4.+-- This file has been generated from package.yaml by hpack version 0.35.1. -- -- see: https://github.com/sol/hpack name: chessIO-version: 0.9.3.0+version: 0.9.3.1 synopsis: Basic chess library description: A simple and fast library for generating legal chess moves. Also includes a module for communication with external processes that speak the UCI (Universal Chess Interface) protocol, a PGN parser/pretty printer, and Polyglot opening book support. On top of that, provides a console frontend program (cboard) that can be used to interactively play against UCI engines. category: Game
src/Game/Chess/Internal.hs view
@@ -582,7 +582,7 @@ when (canBlackCastleKingside pos occ) $ add bKscm when (canBlackCastleQueenside pos occ) $ add bQscm - Vector.unsafeFreeze =<< ($ v) . VUM.unsafeSlice 0 <$> readSTRef i+ Vector.unsafeFreeze . ($ v) . VUM.unsafeSlice 0 =<< readSTRef i piecePlies :: Bitboard -> Bitboard -> Bitboard -> Bitboard -> Bitboard -> Bitboard -> (Ply -> ST s ())
src/Game/Chess/Internal/QuadBitboard.hs view
@@ -189,7 +189,7 @@ alignment _ = 8 peek p = QBB <$> peek (castPtr p) <*> peek (castPtr $ p `plusPtr` 8) <*> peek (castPtr $ p `plusPtr` 16) <*> peek (castPtr $ p `plusPtr` 24) poke p QBB{black, pbq, nbk, rqk} = do- poke (castPtr $ p) black+ poke (castPtr p) black poke (castPtr $ p `plusPtr` 8) pbq poke (castPtr $ p `plusPtr` 16) nbk poke (castPtr $ p `plusPtr` 24) rqk
src/Game/Chess/SAN.hs view
@@ -290,7 +290,7 @@ Bishop -> 'B' : source <> target Rook -> 'R' : source <> target Queen -> 'Q' : source <> target- piece = fromJust $ snd <$> pieceAt pos src+ piece = snd (fromJust (pieceAt pos src)) capture = isCapture pos m source | length ms == 1 = []