Skip to contents

Test whether a FEN is legal

Usage

is_valid_fen(ctx, fen)

Arguments

ctx

A chess.js V8 context from new_chess_context().

fen

A FEN string.

Value

TRUE if the FEN is legal, FALSE otherwise.