Skip to contents

Fold an accepted observation into the game

Usage

game_accept(ctx, game, result)

Arguments

ctx

A chess.js V8 context from new_chess_context().

game

A game record from game_new().

result

A move result from track_observation().

Value

The updated game record.