MoveListExtension extension

on

Properties

gatingMoves List<Move>
All moves that involve gating.
no setter
handDropMoves List<Move>
All moves that involve a hand drop.
no setter
promoMoves List<Move>
All moves that involve a promotion.
no setter

Methods

bestPromo(List<String> pieceHierarchy, [bool strict = false]) Move?
Gets the best promotion move according to pieceHierarchy. Returns null if no appropriate move is found. If strict is true, pieces outside of pieceHierarchy won't be considered.
from(int square) List<Move>
All moves from square.
to(int square) List<Move>
All moves to square.
withPiece(String? piece) List<Move>
All moves with the drop piece piece.
withPromo(String? piece) List<Move>
All moves with the promo piece piece.