sanToMove

fun sanToMove(san: String, board: Board, gameState: GameState): Move

Converts a SAN (Standard Algebraic Notation) string to a Move object for the given board and gameState.

Return

The corresponding Move object.

Parameters

san

The SAN string representing the move.

board

The current board state.

gameState

The current game state.

Throws

if the SAN string is invalid or ambiguous.