generatePseudoLegalMoves

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

Generates all pseudo-legal king moves from the given square, including castling moves.

Return

List of possible moves for the king.

Parameters

piece

The king piece.

fromSquare

The square the king is moving from.

board

The current board state.

gameState

The current game state.