Commit graph

161 commits

Author SHA1 Message Date
2e7ec30043 Improve viewer UX around payments, manning and bidding
- Show total hand credits in my panel and a live selection summary next to
  the cards (selected / required, green when covered, overpay called out —
  the colony gives no change).
- Auto-suggest card payments everywhere (buys, auction payment, discards):
  smallest cards first, research card forced in when required, then pruned
  to minimize overpay. Selection stays freely adjustable.
- Make operator assignment discoverable: 'Assign operators & end turn…'
  button label, glowing factory chips with an inline call-to-action in the
  player panel, manned count vs total and an 'N more could be manned' nudge,
  and spare operators pre-filled into the most productive factories.
- Auction bidding: -1/+1/+5 steppers, 'Bid N' button label, and a live
  'winning at N would cost you M in cards' readout.
- Market cards explain why they're locked while purchases are staged.
2026-08-24 18:46:18 +00: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
9f665c4a07 Add optional chaining for backward compatibility with old game states 2026-08-24 13:40:49 +00:00
fc3da1727b Refactor turn actions into single composite endTurn move 2026-08-24 13:27:50 +00:00
dfda63b6f0 Track last action and limit state save checkpoints 2026-08-21 20:13:07 +00:00
f972f8f7fe Reduce maximum player count to 9 and bump version 2026-08-21 20:00:54 +00:00
f045cd56d3 Enhance viewer visuals and simplify theme to dark mode 2026-08-21 17:14:36 +00:00
f977b7b07d Add autoPassBids setting and refine auction auto-pass logic 2026-08-21 16:16:38 +00:00
c9b6b667f3 Implement auto-passing for bidders who cannot beat high bid 2026-08-21 12:47:23 +00:00
55097ea0c7 Improve UI messaging and streamline auction payment flow 2026-08-21 10:40:34 +00:00
b2c3100d45 Initialize project with Outpost engine and viewer foundations 2026-08-21 10:18:25 +00:00