Skip to contents

List every legal move in a position, in UCI

Usage

legal_moves(ctx, fen)

Arguments

ctx

A chess.js V8 context from new_chess_context().

fen

A FEN string.

Value

A character vector of UCI moves (empty if the position is over or invalid).