Skip to contents

Validate a FEN via chess.js

Usage

validate_fen(ctx, fen)

Arguments

ctx

A chess.js V8 context from new_chess_context().

fen

A FEN string.

Value

The parsed chess.js validation result (a list with ok and, on failure, error).