Skip to content

ChessKit 0.14.0

Pre-release
Pre-release

Choose a tag to compare

@pdil pdil released this 04 Jun 02:53
· 46 commits to master since this release
ae95923

New Features

  • Add willPromote() to BoardDelegate (by @Amir-Zucker).
    • Called when pawn reaches last rank but before Board.completePromotion() is called.

Improvements

  • PGNParser now parses * game results (indicating game in progress, abandoned, unknown, etc.).
  • Add CustomStringConvertible conformance to Piece, Piece.Color, and Piece.Kind.
  • Migrate all unit tests (expect performance tests) from XCTest to Swift Testing.

Bug Fixes

  • Fix issue where MoveTree.endIndex is 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 (and PGNParser) 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-nil Game.

New Contributors

  • @Amir-Zucker made their first contribution in #53

Full Changelog: 0.13.0...0.14.0