Skip to contents

Live game tracking server

Usage

mod_live_server(id, chess_ctx)

Arguments

id

The module id.

chess_ctx

A chess.js V8 context from new_chess_context().

Value

A reactive carrying a position for the interactive board: a list with fen, orientation, nonce and, when a single move was inferred, uci and prev_fen so the board can play it rather than jump. Score up to SCORE_BUDGET unevaluated positions, oldest first.

Returns the game and whether anything is still outstanding, so the caller can come back for the rest rather than blocking here.