Commit graph

22 commits

Author SHA1 Message Date
55beae2f9d Link catch-up option name directly to its rules
All checks were successful
CI / check (push) Successful in 55s
2026-11-19 15:05:02 +00:00
8fd59bc3a4 Document catch-up pricing and link setup option to rules 2026-11-19 15:00:11 +00:00
acf70b7002 Add optional catch-up pricing for auctions 2026-11-18 20:42:09 +00:00
c034aa0d90 Add final-state Outpost achievement hooks and catalog 2026-11-14 01:21:15 +00:00
48a4909e71 Add opt-in automatic production choices and persistent action settings 2026-10-01 14:37:26 +02:00
b29b826e30 Seal simultaneous production choices until everyone confirms 2026-10-01 14:23:58 +02:00
5e7dfbccc6 Load only the selected viewer language and document full uploads 2026-09-30 00:32:58 +02:00
b6bdae9d78 docs: add Boardgamers play link 2026-09-28 22:47:22 +02:00
82aa8b3324 Add guided Outpost tutorials and fix open auction feedback 2026-09-16 00:02:55 +02:00
6ea0353c02 Separate robot ownership from operation and require usable workers to be assigned 2026-09-10 18:28:27 +02: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
dcdb9dd9eb Align game data and logic with physical components 2026-09-05 19:32:50 +00:00
5bd19c5b98 Correct Smelter price to 15 (was 30)
Per the Kicker card data, Smelter costs 15. Also corrects the README card
list. Engine 0.9.5.
2026-08-29 19:57:01 +00:00
cf764c9e3c Tie the Kicker era to the game era; implement the full base-game era rules
The Kicker era advanced only when its pile emptied, so era-I Kicker cards
lingered all game if players didn't buy them. Per the Kicker rules, the era
follows the game era: when it advances, leftover Kicker cards of the ended
era (slots and pile) are returned to the box and the slots refill from the
new era. colonyEra() now derives the era once (leader VP) and drives both
the market die and the Kicker refill; the round entry records kickerEra and
kickerPiles (masked in stripSecret) for exact replay.

The base-game era rules are now complete too:
- The 'very rare' fallback: a second consecutive round beginning with every
  upgrade 1-4 (→ Era II) or 1-10 (→ Era III) already purchased advances the
  era even with no player at the VP threshold (eraStreak4/eraStreak10,
  recorded on the round entry for replay).
- The next-lower-numbered-card cascade: a roll naming an exhausted type now
  falls to the next lower offerable upgrade down to the era floor instead of
  only rerolling.

Also fixes a latent JSON-stability bug my era work exposed: the auction
object always set both upgrade and kicker (one undefined), which JSON
round-trip drops — now exactly one key is present.

The viewer header shows the current era. Engine 0.9.2.
2026-08-28 23:12:26 +00:00
85a5b48315 Mega: blind per-group election before draws (rule 12.1); clearer bid max + clamp bids
Mega (rule 12.1) rework — the election is now made blind, before any of the
round's production draws are revealed, and decided per group of 4 operated
factories (never upgrade freebies or Kicker bonuses):

- Eligibility is computed from operated factories (megaGroups), staged at
  production time and recorded on the round log entry for exact replay.
- The mega move is now { take: { resource: count } } (was { cards: indices }).
- The electing player's own pending draw values are hidden (stripSecret /
  logSlice) until they commit, so the choice is genuinely sight-unseen.
- AI elects by fixed mega value vs expected value of 4 fresh draws.
- Viewer: per-resource Mega stepper in the action bar; pending draws render
  face-down during the election.

Bidding clarity + safety:
- Auction banner shows the max-bid breakdown: hand value + discount (colored)
  = max bid, for both sealed and sequential auctions.
- Opening-bid and follow-up-bid inputs are clamped to the affordable max
  (hand value + discount) instead of relying on the engine to reject overbids.

Engine 0.9.0 (mega move-format change).
2026-08-28 22:21:56 +00:00
106ddfe5f1 Kicker: implement Wily Trader / Merchant House exchange
Add the forced card-exchange mechanic as a new "exchange" phase at the end
of the discard phase. In player order, each Wily Trader / Merchant House
owner may hand one tradable card (Ore/Water/Titanium, or Research/
Microbiotics/New Chemicals for Merchant House) to a player holding a
non-Mega card of the same type; the target must return a higher-valued card
of the type if they have one, else return the given card.

The target's return is auto-resolved (their lowest higher-valued card), so
the target makes no decision — one exchange move per owner. Taken cards park
face-down on the Kicker card until the phase ends (untargetable that phase).
The resolution is recorded in MoveInfo so a stripped log replays verbatim.

Engine: exchange/exchangePass moves, ExchangeState, validation, sanitize,
describe, availableMoves/currentPlayer, replay, stripSecret masking, AI, and
tests. Viewer: exchange step in the ActionBar, clickable hand cards and
target player panels. Engine 0.8.0.
2026-08-28 19:40:25 +00:00
98ad7a2aaf Correct Kicker card prices/VPs to the printed values
Confirmed from the 2011 rulebook and BGG: Robot Prototype 10/0 (was 10/1),
Smelter 30/1 (was 10/1), Launch Facility 75/2 (was 40/2), Merchant House
60/1 (was 40/2). Refinery's printed cost/VP are undocumented (the rulebook
omits its card image); provisionally 60/1 as the Era II analog of Ice
Prospector (mirroring Wily Trader 10/1 -> Merchant House 60/1). README and
the rules CMS page updated to match.
2026-08-28 11:46:59 +00:00
3faa0d6aad Add the Kicker expansion as a game option
The kicker option adds a separate row of Kicker slots (1/2/3 by player
count for 2-4/5-7/8-9) filled from era piles (I -> II -> III). Kicker
cards are auctioned like colony upgrades (no discounts) and grant VPs
plus in-game benefits.

Engine (0.7.0):
- Kicker cards are a distinct type; auction/pay flow accepts a kicker
  flag (index into kickerMarket). Era advances when its pile empties,
  removing leftover slot cards. Round log entries carry the Kicker slots
  so replay reproduces them; stripSecret hides the face-down era piles.
- Effects: Ice Prospector/Refinery (draw an extra water/titanium then
  discard the cheapest just-drawn of that type), Smelter (-5 on Robots
  upgrades + 1 ore per 2 ore factories), Launch Facility (-30 on the big
  three), Biosphere (+5 population limit), Robot Prototype (free robot
  operable without a Robots upgrade), NCF Prototype (free New Chemicals
  factory, no research card). The AI auctions and bids on Kicker cards.
- Wily Trader / Merchant House score their VP but their interactive
  forced exchange is deferred (noted in README).

Viewer: a Kicker section in the market (era-colored cards: era I blue,
II orange, III purple) with the auction flow, and Kicker badges on the
player panels. Dev harness gains ?kicker=1.

Card data: Biosphere 250/25, NCF Prototype 60/0, Era I 1 VP confirmed;
the remaining prices/VPs are inferences pending the printed values (one
line each in KICKER_SPECS). Rules CMS page and README updated.
2026-08-28 10:51:14 +00:00
504b724999 Implement mega production cards (expert rule 12.1)
With 4+ manned water/titanium/newChemicals factories a player may take 1
Mega card per group of 4 draws instead: a fixed printed value (Mega Water
30, Mega Titanium 44, Mega New Chemicals 88) that counts as 4 cards toward
hand capacity.

Engine (0.6.0):
- Production draws are staged in player.pendingMega; a new "mega" phase
  sits between production and discard. Players with no mega option
  auto-confirm to singles; eligible players confirm via the "mega" move
  (selected indices must form full groups of 4 of one mega resource).
- Mega cards are a separate face-up pool (megaSupply, 9 per type); a
  spent/discarded mega returns to its pool, never the shuffled deck.
- Held megas are public: stripSecret keeps their printed value, and
  handValueRange/Expected count them exactly. countingHandSize weighs a
  mega as 4. Replay reproduces the staged draws and the mega moves from
  the log. The AI converts a group when the fixed value beats the draws'
  expected value; chooseDiscard accounts for the 4x weight.

Viewer: a Production phase shows the staged draws in your panel — click
groups of 4 to mark them for a Mega card, the rest are kept as singles;
mega cards render with a gold border and a "Mega" label, and opponents'
held megas are shown as public cards. HeaderStrip labels the phase.

Docs: README deviations describe the rule and the pool-size inference;
the rules CMS page gains a Mega production cards section.
2026-08-28 10:22:22 +02: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
b2c3100d45 Initialize project with Outpost engine and viewer foundations 2026-08-21 10:18:25 +00:00