Skip to contents

Convert a UCI move to SAN for a position

Usage

fen_move_to_san(ctx, fen, uci_move)

Arguments

ctx

A chess.js V8 context from new_chess_context().

fen

A FEN string of the position before the move.

uci_move

A UCI move string (e.g. "e2e4", "e7e8q").

Value

The move in SAN (e.g. "e4", "e8=Q"), or NULL if illegal.