WhitePawn class
Represent a white pawn.
- Inheritance
-
- Object
- Piece
- WhitePiece
- WhitePawn
- Mixed-in types
Constructors
- WhitePawn()
-
const
Properties
- color → PieceColor
-
color of the piece.
finalinherited
- fenSymbol → String
-
Returns FEN symbol for this piece.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBlack → bool
-
Returns
true
if this piece is black.finalinherited - isWhite → bool
-
Returns
true
if this piece is white.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → PieceType
-
type of the piece, e.g. pawn, knight, etc.
final
Methods
-
getPossibleMovesFromSquareOnBoard(
Square square, Board board) → List< Move> -
Returns the list of possible moves with this piece from
square
, including moves that are illegal in current position.inherited -
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