ChessKit 0.9.0
Pre-release
Pre-release
Improvements
MoveTree
now conforms toBidirectionalCollection
, allowing for more standard collection-based semantics in Swift.- Should not affect any existing functionality or API usage.
- Several methods on
MoveTree
have been deprecated in favor of theirCollection
counterparts:previousIndex(for:)
→index(before:)
/hasIndex(before:)
nextIndex(for:)
→index(after:)
/hasIndex(after:)
move(at:)
→subscript(_:)
(e.g.tree[index]
)
MoveTree.annotate()
now optionally returns theMove
object after annotation.MoveTree.path()
now returns tuple with named parameters (direction
andindex
).
Bug Fixes
- Removed
CustomDebugStringConvertible
conformance fromBitboard
to avoid affecting allUInt64
debug prints.- To print the string representation of
Bitboard
useBitboard.chessString()
.
- To print the string representation of
Full Changelog: 0.8.0...0.9.0