Setup constructor

const Setup({
  1. required Board board,
  2. Pockets? pockets,
  3. required Side turn,
  4. required SquareSet castlingRights,
  5. Square? epSquare,
  6. required int halfmoves,
  7. required int fullmoves,
  8. (int, int)? remainingChecks,
})

Creates a new Setup with the provided values.

Implementation

const Setup({
  required this.board,
  this.pockets,
  required this.turn,
  required this.castlingRights,
  this.epSquare,
  required this.halfmoves,
  required this.fullmoves,
  this.remainingChecks,
});