The upgrade market's open check matched on marketIndex alone, so staging
Kicker card N also opened the bid box under upgrade N. Require
pick.kicker !== true for upgrades (the Kicker section already required
=== true).
fastBid used to mask every sealed bid from non-bidders forever. Now the
wrapper masks a bid only while its auction is still collecting bids — once
the resolving move (info.winningBid) is logged, every bid of that auction is
revealed verbatim in the log, including losing ones (Powergrid semantics).
During the auction only participation is visible, exactly as before. The
resolving entry's describe line now shows its own amount too.
Viewer: with the autoPassBids setting on, a player whose true hand cannot
reach the list price auto-submits a sealed pass (bid 0) — indistinguishable
from a manual pass, so nothing leaks about the hand. Engine 0.10.0.
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.
Component shortage: production decks and mega cards are unlimited — a dry
deck (deck and discard both empty) produces a stand-in at the deck's average
value, a real card that spends and recycles normally; mega eligibility no
longer checks a printed pool count (megaSupply removed).
Corrected card data from the printed cards: Laboratory 80 and Ecoplants 30
(were 100/50), ore 1x6/2x8/3x8/4x8/5x6, ring ore 30x1/35x3/40x4/45x3/50x1,
moon ore 40x1/45x3/50x4/55x3/60x1, Launch Facility 60/2, Merchant House 15/1,
Refinery 15/1 (was provisional 60/1). Water, titanium, new chemicals, orbital
medicine, microbiotics and research confirmed as-is. Setup chart drops the
dead 10-player row (game is 2-9).
Also fixes a latent drawCard bug (popped from the stale array after a
reshuffle reassigned it, silently skipping draws) and teaches the AI to take
mega cards for hand-capacity relief instead of hoarding value-losing singles.
Engine 0.9.8.
Each player cluster now lays out in two bands: factory families on the top
rows, upgrade families on separate rows beneath them. Keeps clusters narrow
and stops factories and upgrades from sprawling into one long line.
Svelte drops whitespace-only text at the start of a block but keeps it
before the {#if} tag, so text glued as expr}{#if rendered without a space:
- production average: '6-20(~13)' → '6-20 (~13)' (now matches hand value)
- mega stepper: 'Mega Water(◈ 30)' → 'Mega Water (◈ 30)'
- auction hint: 'You hold ◈ 12+15' → 'You hold ◈ 12 +15' (both banners)
- pay hint: '(bid 40− 15 discount)' → '(bid 40 − 15 discount)'
- market card: 'min ◈ 25· you pay' → 'min ◈ 25 · you pay'
- player tags: 'Laboratory×2' → 'Laboratory ×2' (matches the supply bar)
Rules check for kicker eras (reported: 'era 2, kicker card is still era 1'):
per the rulebook, era transitions happen during Phase 2 (Replace Purchased
Colony Upgrade Cards) — when Era I ends, its remaining Kicker cards (slots +
pile) are boxed and the slots refill from Era II. A mid-round VP change does
not advance the era until the next colony ship. The engine already did this;
the bug was the DISPLAY: the header computed the era live from current VP,
so it showed Era II mid-round while the effective era (die, kickers) was
still I.
The state now carries the effective era, fixed at round begin and recorded
on round entries for replay; the header and the supply-bar highlights show
it. refillKickers also handles a double era jump (I -> III) by boxing both
ended eras. Engine 0.9.7.
The back row of a 2-row family was raised above the ground line, which made
it float into the sky. Now the back row stays on the ground and the front
row comes forward (down the screen). Also tightened the horizontal spacing
(22 → 18) and the row gap (22 → 16) so family members pack closer.
- A building family now lays out in at most 2 rows split as evenly as
possible (3 → 2+1, 4 → 2+2, 5 → 3+2, 6 → 3+3) instead of one long line.
- The glowing resource icon in a building's middle now renders only for
manned factories, not for upgrades (Heavy Equipment, Nodule, ...) which
were always marked manned.
The per-player building clusters were placed with phyllotaxis (sunflower
spiral) plus jitter, which looked haphazard. Now each cluster's buildings
are grouped into families (same factory type / same upgrade), and the
families are typeset into rows like words in a paragraph — a family stays
together on one row and wraps to a new row when it would overflow, never
splitting. Buildings sit on the ground curve; back rows are raised to read
as further away.
Kicker cards now show the same era badge after their title as the colony
upgrade cards (reusing the .uera style), so both card types carry their era
inline.
The gold current-era border now applies only to the standalone era delimiter
chip in each supply bar; the individual pending cards keep their normal
border. Less visual noise, same signal.
The colony-upgrade supply now matches the Kicker supply: a standalone era
delimiter chip before each era group, and current-era cards get the gold
highlight border (driven by colonyEra). The pending-upgrades bar also moves
to the bottom of the "Colony upgrades for auction" section, right under the
market cards, instead of sitting below the Kicker section.
Card effects are now EffectToken[] instead of prose that CardEffect parsed
with regexes. A Resource/FactoryType renders as its icon, an Upgrade/Kicker
as an era-badged chip, and "manned factory" as filled factory icons — so
descriptions get compact: "Allows ◆ (7-13 cards)", "Draw 1 extra ◆ per
◆◆". effectToText flattens the tokens back to a plain string for tooltips
and log titles. Viewer-only change.
- stripSecret now sorts the face-down Kicker piles into canonical order
instead of placeholder-masking them. The draw order stays secret, but the
per-type counts (public info: initial copies minus the public market and
owned cards) are now visible. The Kicker supply bar shows each pending
card with its count, like the colony-upgrade supply bar.
- New CardEffect component renders effect text with upgrade names as
era-badged chips, resource names as resource-icon chips, and "N X
factories" as manned-factory icons. Used in the market, the auction
banner, and tooltips stay plain text.
- The market card era marker now sits inline after the title.
- Capitalized resource names in effect strings so they render as chips.
Engine 0.9.6.
Below the current Kicker slot(s), list each era's Kicker types with the
face-down pile's remaining count (the draw order stays hidden — only the
public per-era type set and pile size show). The current era is highlighted.
Mirrors the colony-upgrade supply bar.
Add upgradeNumber/upgradeEra helpers (card 1-13 → Era I/II/III). The supply
bar now tags every upgrade type with a colored era badge (I blue, II orange,
III purple) so players can see the era grouping at a glance, and each market
card carries a small era badge. Engine 0.9.5.
producePlayer draws every operated factory's card from its deck into
pendingMega. When a Mega card was then taken, the 4 staged draws it replaced
were simply dropped — but they had already been drawn from the deck, so each
mega conversion permanently destroyed 4 cards of that resource. Over a game
this drained the resource deck to 0 with an empty discard (confirmed live:
4 Mega Water taken destroyed 16 of 39 water cards, so no one could draw
water).
A Mega card is taken INSTEAD of the group's 4 draws — those draws never
happen, so the staged cards now go back onto their (face-down) deck,
conserving the count. Engine 0.9.4.
States saved before the eraStreak fields existed lack them; updateEraStreaks
did undefined + 1 = NaN when the supply was empty, so the era fallback never
fired for migrated games and NaN polluted the state. Make the fields optional
and default them to 0. Engine 0.9.3.
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.
publicMaxBid valued every hand card at its resource's deck max, including
mega cards — but a mega card is face-up with a fixed printed value that can
far exceed the deck max (Mega Titanium 44 vs 13, Mega New Chemicals 88 vs
26). The auto-pass bound was therefore drastically undercounted for anyone
holding mega cards, so fastAutoPass / mustAutoPassBid passed seats that
could easily afford the bid. Use the mega card's printed value (public
information) instead of the deck max. publicMaxBid now agrees with
handValueRange.
Also: an auction's auto-passed seats were recorded in MoveInfo.autoPassed
but never rendered — a sealed-bid auction could silently skip players.
describe.ts now appends them ('— X auto-passes (can't reach the price)').
Engine 0.9.1.
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).
Second-price sealed auctions charge the runner-up bid + 1, floored at the
list price (the reserve) and capped at the winner's bid. The old special case
(secondBid === 0 -> pay winningBid) only yielded the list price when the
opener bid exactly list; an opener who overbid (e.g. 35 on a 25-list card)
and saw everyone pass was wrongly charged their full bid. Now the price is
min(winningBid, max(listPrice, secondBid + 1)), so an uncontested overbid
pays the list price. Engine 0.8.3.
Two game-server-facing fixes:
- logSlice entries now carry a plain-text simple line (via describeLogEntry),
which the game-server's lastMoveText probes for to show the last move in the
game list. Structured entries otherwise stringified to noise there.
- fastBid: the auctioneer's opening bid is their sealed bid, but the auction
log entry's bid was never masked — opponents saw it in the raw log and in
the event-log text. hideProduced now masks it to -1 for non-auctioneers
(fastBid only; sequential opening bids are the public high bid), describe
renders it as a sealed bid, and sanitize/replay accept the -1 sentinel.
Engine 0.8.2.
Next to your exact hand total, show the min–max range other players see for
you (your card types are public, only the values are hidden), with their
best-guess average in parentheses — the same computation handValueRange does
for opponents. Only shown when the range is non-trivial (min != max).
On a sealed-bid auction open, auto-pass (sealed bid of 0) any active seat
whose public max bid — each hand card worth its deck max, computable from
public card types — is below the list price. Unlike a true-value check this
leaks nothing (the bound is public information), and it skips bids the
auction would never wait on, so fast auctions resolve faster. If auto-passing
leaves the auctioneer as the sole bidder, the auction resolves immediately at
the list price. The passed seats are recorded in MoveInfo so a stripped log
replays verbatim. Engine 0.8.1.
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.
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.
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.
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.
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.
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.
With the fastBid setup option, auctions become sealed-bid: everyone bids
at once (the auctioneer's opening bid is their sealed bid), bids stay
hidden until all are in, then the highest bidder wins at second-highest
+ 1 (capped at their own bid; a sole bidder pays list price). Ties go to
the earliest seat in purchase order from the auctioneer.
Engine (0.5.0):
- AuctionState.bids (seat -> amount, 0 = pass); currentPlayer returns
all pending bidders as an array during a fast auction.
- stripSecret masks other players' sealed bids (-1) and bid move
amounts in the log; replay carries the recorded resolution
(winningBid/secondBid/winner in MoveInfo) so a stripped log replays
deterministically.
- No auto-pass in fast auctions: passing is a private bid of 0, so a
weak hand is not revealed by being skipped.
- dropPlayer during a fast auction = sealed pass; a dropped winner is
skipped at resolution. AI bids max when list price is reachable.
Viewer: sealed-bid banner (who still has to bid, bid input floored at
list price), SEALED BIDS phase label, pending bidders highlighted, log
narrates sealed bids. Dev harness: ?fastBid=1.
- UpgradeBadges component on market cards and the auction banner: produced
card (icon + value range), unlocked/free factories (icon chips), hand
capacity / population bonuses, robots and ecoplants effects at a glance.
- Prefix credit amounts with the currency glyph everywhere (prices, bids,
payments, buy buttons).
- Fix the header strip width for real: size the main column to fill the
board instead of sizing the page to its content (unwrapped log lines made
fit-content drift wider than the visible content row, e.g. 2-player games).
Replace the greedy smallest-first pick with a small 0/1 knapsack DP
(bestPayment in the engine): minimize the total paid (change is lost),
and among equal totals spend as many cards as possible (3+2 beats 5).
A forced research card is chosen to minimize the total too. Used by both
the viewer's auto-suggestions and the AI. Engine 0.4.3.
- Upgrade card/list text: larger and brighter (new --text-mid tone) in the
market cards, auction banner, supply tags and player upgrade tags.
- Log: 'X builds a water factory (paid 20) and mans 4 factories' instead of
the repetitive 'ends their turn' phrasing; buttons are now 'Assign
operators…' then a single 'End turn' confirm.
- Upgrade effects mention the produced card's value range (e.g. Microbiotics
14-20), derived from the deck data.
- Soft-hyphenate Microbiotics so it wraps inside the narrow card.
- Bidding: when the high bid provably can't be beaten, say so and offer only
Pass instead of a row of disabled steppers. Engine 0.4.2 (describe only).
The static asteroids in the background SVG and the drifting rocks were
translucent, so stars shone through them and read as being in front.
Replace each translucent grey with its opaque blend over the background
color: identical appearance on empty sky, proper occlusion over stars.
Card types are public (only values are stripped), so each hidden card is
worth between its deck's min and max. New engine helper handValueRange
(exact for visible values) and a dimmed credits range in opponent panels.
Engine 0.4.1.
On wide screens the content row centers at fit-content width while the
header strip spanned the full board width; move the strip (and replay bar)
inside the page container so they share the same width.