Repository navigation
ChessKit 0.14.0
Pre-release
Pre-release
New Features
- Add
willPromote()toBoardDelegate(by @Amir-Zucker).- Called when pawn reaches last rank but before
Board.completePromotion()is called.
- Called when pawn reaches last rank but before
Improvements
PGNParsernow parses*game results (indicating game in progress, abandoned, unknown, etc.).- Add
CustomStringConvertibleconformance toPiece,Piece.Color, andPiece.Kind. - Migrate all unit tests (expect performance tests) from
XCTesttoSwift Testing.
Bug Fixes
- Fix issue where
MoveTree.endIndexis not properly updated after the first half move (by @Amir-Zucker). - Fix issue where
BoardDelegate.didPromote()was called before and after promotion (by @Amir-Zucker). - Fix issue where pawns on the starting rank could hop over pieces in front of them, see Issue #49 (by @joee-ca).
- Fix
SANParser(andPGNParser) accepting invalid SANs when they started with a valid SAN (e.g."e44"which starts with the valid"e4").
Breaking Changes
Game(pgn:)is no longer a failable initializer, it will now always create a non-nilGame.
New Contributors
- @Amir-Zucker made their first contribution in #53
Full Changelog: 0.13.0...0.14.0