generatePseudoLegalMoves

abstract fun generatePseudoLegalMoves(piece: Piece, fromSquare: Square, board: Board, gameState: GameState): List<Move>

Generates all pseudo-legal moves for the given piece from the specified square.

Return

List of possible moves for the piece.

Parameters

piece

The piece to move.

fromSquare

The square the piece is moving from.

board

The current board state.

gameState

The current game state.