Setup class
A not necessarily legal position.
- Annotations
-
- @immutable
Constructors
- Setup({required Board board, Pockets? pockets, required Side turn, required SquareSet castlingRights, Square? epSquare, required int halfmoves, required int fullmoves, (int, int)? remainingChecks})
-
Creates a new Setup with the provided values.
const
- Setup.parseFen(String fen)
-
Parses a Forsyth-Edwards-Notation string and returns a Setup.
factory
Properties
- board → Board
-
Piece positions on the board.
final
- castlingRights → SquareSet
-
Unmoved rooks positions used to determine castling rights.
final
- epSquare → Square?
-
En passant target square.
final
- fen → String
-
FEN representation of the setup.
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
-
FEN character for the side to move.
no setter
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