LegalMoveGenerator

internal class LegalMoveGenerator

Generates all legal moves for the current player, filtering out pseudo-legal moves that would leave the player's king in check.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun getAllLegalMoves(board: Board, currentPlayerGameState: GameState): List<Move>

Returns a list of all legal moves for the current player.