State
public struct State : Hashable
Position state.
-
Color that holds current side that should make the next move.
Declaration
Swift
public var turn: PieceColor
-
Available castlings in position.
Declaration
Swift
public var castlings: [Piece]
-
The square where pawn may be taken by en-passant move.
Declaration
Swift
public var enPasant: Square?