Commit graph

10 commits

Author SHA1 Message Date
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
8ea842be0f Merge colony overview with current viewer preferences 2026-10-04 11:33:07 +02:00
5e7dfbccc6 Load only the selected viewer language and document full uploads 2026-09-30 00:32:58 +02:00
ae6d311775 Use shared BGS protocol for viewer lifecycle and chat 2026-09-13 20:14:10 +02:00
0e28593cef Move the repo to Codeberg and port CI to Forgejo Actions
The project now lives at codeberg.org/boardgamers/outpost. The GitHub
Actions workflow is replaced by an equivalent Forgejo Actions workflow
(.forgejo/workflows/ci.yml): docker runner on a pinned node:24-bookworm
image, pnpm via corepack, checkout from data.forgejo.org — the same shape as
boardgamers-mono. AGENTS.md points at the new remote.
2026-09-10 12:46:58 +00:00
1545243049 Make Kicker a native BGS expansion instead of a game option
The wrapper's init now reads the expansions string[] param (same pattern as
Gaia Project's lost-fleet): expansions ["kicker"] maps onto the internal
options.kicker flag, which the engine, dev harness and saved games keep
using. The gameinfo doc declares expansions: [{ name: "kicker" }] and no
longer lists kicker among the checkbox options. Engine 0.9.9.
2026-09-05 20:26:58 +00:00
75f6628ae5 Trim AGENTS.md duplication; note Laboratory/Ecoplants price variance in README
Both files are fed to agents, so rules details live only in README's
deviations section; AGENTS.md points at it. README also flags that the
1994 v1.32 document prices Laboratory/Ecoplants at 80/30 while this
implementation follows the 20th Anniversary printing at 100/50.
2026-08-28 00:13:26 +02:00
4441507f1b Show production stats, longer log, supply tooltips; document mega-card gap
Viewer:
- Player panels show per-round production (min-max with average) from
  manned factories and producing upgrades, and opponents' hand ranges
  now include the expected value alongside min-max.
- Event log keeps 40 entries (was 10) with a taller scroll area.
- Supply upgrade tags carry a full tooltip (VP, list price, effect).

Engine (0.5.1): productionRange and handValueExpected helpers (public
information only; additive, no behavior change).

Docs: AGENTS.md gains the mega-card rule gap (v1.32 rule 12.1 on hold —
Mega Titanium value undocumented), the fastBid design notes, the
responsive-layout conventions, the GitHub remote (the 'no remote' note
was stale) and the rules-page CMS route. README deviations note the
missing mega cards.
2026-08-28 00:07:42 +02:00
1dcc7d93a0 Fix save/replay integrity: composite endTurn move, logged auto-passes, always persist
- toSave always returns the state again: the platform keeps no memory between
  requests, so unsaved intermediate moves were discarded outright (auctions
  wedged, purchases lost, bots stuck, drops and settings silently dropped).
- Time farming is prevented structurally instead: buyFactory/buyPopulation/
  buyRobots become TurnBuy steps inside a single composite endTurn move,
  validated atomically via a dry run on a clone. Auction moves stay individual.
- Auto-passed bidders are recorded in the move's info.autoPassed and replayed
  verbatim; the true-value autoPassBids pass cannot be recomputed from a
  stripped log (this desynced replay before).
- Viewer stages purchases locally (draft state, undo) and sends them with
  endTurn; auctions are blocked while buys are staged.
- Harden settings access for pre-0.2 saved states; document the BGS admin-API
  deployment flow in AGENTS.md. Engine 0.4.0 (deployed to prod, hot-swapped).
2026-08-24 13:45:58 +00:00
b2c3100d45 Initialize project with Outpost engine and viewer foundations 2026-08-21 10:18:25 +00:00