Setup class

A not necessarily legal position.

Annotations
  • @immutable

Constructors

Setup({required Board board, Pockets? pockets, required Side turn, required SquareSet unmovedRooks, Square? epSquare, required int halfmoves, required int fullmoves, (int, int)? remainingChecks})
const
Setup.parseFen(String fen)
Parse Forsyth-Edwards-Notation and returns a Setup.
factory

Properties

board Board
Piece positions on the board.
final
epSquare Square?
En passant target square.
final
fen String
no setter
fullmoves int
Current move number.
final
halfmoves int
Number of half-moves since the last capture or pawn move.
final
hashCode int
The hash code for this object.
no setteroverride
pockets Pockets?
Pockets in chess variants like Crazyhouse.
final
remainingChecks → (int, int)?
Number of remainingChecks for white and black.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
turn Side
Side to move.
final
turnLetter String
no setter
unmovedRooks SquareSet
Unmoved rooks positions used to determine castling rights.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

standard → const Setup