generatePremoves method

List<Move> generatePremoves()

Generates all possible moves that could be played by the other player next turn, not respecting blocking pieces or checks.

Implementation

List<Move> generatePremoves() =>
    generatePlayerMoves(state.turn.opponent, MoveGenParams.premoves);