outpost/packages/engine
coyotte508 54ec844c33 Rebuild exact game states for BGS undo and replays
BGS saves what the engine's `replay(data, { to })` returns: undo against bots,
admin and batch replays. It replayed the log for display, without drawing from
the decks or advancing the PRNG, so a restored game kept its initial decks
(cards duplicated between hands and decks), rewound the random counter and
lost the players' auto-pass and production settings.

Given the seed, `replay` now re-applies the logged moves from `initGame`,
replays automatic choices as recorded and checks every regenerated entry
against the saved log, refusing rather than rewriting a history it cannot
reproduce (e.g. after a drop). Current names, settings and drops are kept;
secret-stripped logs still use the display replay. Engine 0.10.26.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:06:25 +02:00
..
src Rebuild exact game states for BGS undo and replays 2026-10-08 12:06:25 +02:00
index.ts feat: allow revising sealed bids and Mega choices 2026-10-05 01:36:03 +02:00
package.json Rebuild exact game states for BGS undo and replays 2026-10-08 12:06:25 +02:00
tsconfig.build.json Initialize project with Outpost engine and viewer foundations 2026-08-21 10:18:25 +00:00
tsconfig.json Initialize project with Outpost engine and viewer foundations 2026-08-21 10:18:25 +00:00
tsconfig.test.json Initialize project with Outpost engine and viewer foundations 2026-08-21 10:18:25 +00:00
wrapper.ts Rebuild exact game states for BGS undo and replays 2026-10-08 12:06:25 +02:00