Play the Modern kickoff live: minute steps, substitutions and tactics from the ticker

A rehearsal (session.advance with dryRun) settles questions of the run
before the kickoff; an extension answered there is agreed at the player's
demand of that moment. With an own match the kickoff runs live: one
live.step per beat of the speed control, substitutions and the tactics
board through live.substitute and live.tactics, and leaving the ticker
plays the match to its end. After the final whistle the engine's recording
replaces the frames composed on the way. The paused live read names clubs
in the world's spelling, and the review table shows wins, draws and losses.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 00:49:51 +01:00
1 parent 2d66609ca8
commit a5810b15ae
14 files changed
+456 -31

No files matched your search

+12
View File
@@ -30,6 +30,18 @@
Json engine_advance_payload_ = Json::object();
std::string engine_expiry_player_;
void engine_kickoff();
// A kickoff of the engine that is played minute by minute while the ticker is open.
bool engine_live_running_ = false, engine_live_busy_ = false, engine_live_at_end_ = false;
std::future<Json> engine_live_job_;
std::string engine_live_revision_;
uint64_t engine_live_elapsed_ = 0;
Json engine_live_roster_ = Json::array(), engine_live_swap_, engine_live_queue_;
// The tactics board during a live kickoff: the engine's controls with the values in force.
Json engine_live_tactics_ = Json::array(), engine_live_tactics_sent_;
void engine_live_begin(const Json &state, const std::string &revision);
void engine_live_send(const std::string &kind, const Json &payload);
void engine_live_poll();
void engine_live_enter();
void engine_expiry_ask(const Json &args);
void live_close();
bool live_action(const std::string &, Rml::Element *);