Skip to contents

Play a move onto a tracked game

Usage

game_apply_move(ctx, game, uci)

Arguments

ctx

A chess.js V8 context from new_chess_context().

game

A game record from game_new().

uci

The move to play.

Value

The updated game record, or the original unchanged if the move was illegal.