DropMove class

A move where a piece is dropped from the player's hand onto the board. This is only for hand drops, not gating moves, which are currently still part of StandardMove.

Inheritance

Constructors

DropMove({required int to, required int piece})
const

Properties

capture bool
Whether a piece is captured as a result of this move.
no setterinherited
capturedPiece int?
The piece (including colour and flags) that is being captured, if one is.
no setterinherited
castling bool
Whether this is a castling move.
no setterinherited
dropPiece int
The piece (type only) that is being dropped, if one is.
no setteroverride
enPassant bool
If this move is en passant.
no setterinherited
from int
The board location this move starts at.
no setteroverride
gate bool
Whether this is a gated drop, e.g. the drops in Seirawan chess.
no setterinherited
handDrop bool
Whether this is a drop move where the piece came from the hand to an empty square, e.g. the drops in Crazyhouse.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
piece int
final
promoPiece int?
The piece (type only) that is being promoted to.
no setterinherited
promotion bool
Whether the moved piece is promoted.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setEnPassant bool
If this move sets the en passant flag.
no setterinherited
to int
The board location this move ends at.
final

Methods

algebraic(BoardSize size) String
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.
inherited