generatePseudoLegalMoves

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

Generates all pseudo-legal pawn moves from the given square.

Return

List of possible moves for the pawn.

Parameters

piece

The pawn piece.

fromSquare

The square the pawn is moving from.

board

The current board state.

gameState

The current game state.