fuji/docs
coyotte508 0c59dab3d1 Undo against bots: replay to BGS log positions (engine 0.1.12)
BGS undoes the only human's last saved move by calling replay(data, { to })
with the log length recorded before that move, and requires
logLength(result) === to. The wrapper passed `to` to the internal replay as
a history index, so most undo requests failed or landed elsewhere; admin
replays, which also send log positions, had the same problem.

With a position, replay now rewinds to the first point where the journal
reaches it, then reapplies later name changes and drops, and does not queue
chat announcements of replayed moves again. Choices that add no journal
entry (live route and readiness edits, preparation before the last player is
ready) are not restored: undoing one reopens them for every player, and the
bots choose again. replay(data) without a position, createAnalysis and the
internal history-index replay are unchanged.

Tests play complete 2-4 player games against bots: every undo point reaches
its log length and deep-equals the saved state unless unannounced choices
preceded the move; otherwise the reopened phase stays playable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 11:59:26 +02:00
..
ai-benchmark.json Improve cooperative AI and preserve player decisions during teammate updates 2026-09-08 18:29:57 +02:00
ai-detour-benchmark.json Preserve playtest settings and benchmark equipment after pathfinding fix 2026-09-08 22:17:02 +02:00
ai-policy.md Anticipate village arrivals and lava cutoffs with matched AI benchmarks 2026-09-09 02:32:26 +02:00
ai-village-help-benchmark.json Use avatar map markers and let safe village bots weaken conflicting dice 2026-09-08 23:02:14 +02:00
ai-village-space-benchmark.json Anticipate village arrivals and lava cutoffs with matched AI benchmarks 2026-09-09 02:32:26 +02:00
audio-credits.md Pace expedition playback with sound and refine journal, equipment choices and AI 2026-09-08 17:58:34 +02:00
bgs-integration.md Undo against bots: replay to BGS log positions (engine 0.1.12) 2026-10-08 11:59:26 +02:00
rules-status.md Fit guides and village progress into all seven map layouts 2026-09-08 20:55:08 +02:00
rules.md Restore equipment reference alongside simplified rules 2026-09-08 21:18:58 +02:00
viewer-publishing.md Split languages and media out of the viewer entry 2026-09-30 00:28:36 +02:00