MoveListExtension extension
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
.