primordial-soup/README.md

7.8 KiB
Raw Blame History

Primordial Soup

An original vector-art web adaptation of Doris Matthäus and Frank Nestel's game, for 3–6 colonies. It includes a server-authoritative engine, practice bots, and ten interactive English lessons using the ordinary board controls.

Play online at

boardgamers.space

Development

pnpm install
pnpm build
pnpm test
pnpm dev

Local practice: http://127.0.0.1:5221/ . Lessons start at /?chapter=drift.

Chat and journal preview: /?chat=1. This uses the BGS viewer protocol with local messages, unread notifications, mentions and send-failure controls; nothing is sent to other players.

The Color-blind mode button in the top toolbar adds matching colony symbols to amoebas, food and scoring markers: circle, triangle, square, diamond, cross and star. BGS saves the colorBlind preference to the signed-in account through the viewer protocol; both the BGS preference panel and the toolbar update the display immediately. Local practice and chat previews save it in the browser. It applies to any player count.

Rules and implementation status

Rules: Z-Man English rulebook, publisher's reference sheets, and publisher FAQ.

The engine implements all six phases, finite food and genes, the twenty base-game gene effects, interruptions for Holding and combat, and scoring/end conditions. Gene quantities follow the owner's confirmed lists: 20 cards across 18 gene types for three players; four players add one each of Ray Protection, Intelligence, Speed, Escape, Tentacle, Frugality, Parasitism, Division Rate, Longevity (Life Expectancy), and Movement II, for 30 cards across 20 types. Persistence remains one copy in both pools.

The environment-card manifest in engine/catalog.js uses the owner's confirmed eleven-card list: 6/west, 8/east, 9/west, 9/north, 10/east (two copies), 10/south, 11/north, 12/west, 13/south, and 14/no drift. Tutorials use explicit prepared environments.

Five and six players use the complete 39-card standard gene pool from the publisher's Freshly Spiced rules and reference sheets. Streamline and Struggle for Survival have mutation sensitivity 5; Frugality costs 5 BP. Amoebas eat four different foreign colours, receive 11 BP in phase 4, and are limited to numbers 1–6. Starting scores are chosen from 1–6, even with five players. Population scores for 0–6 amoebas are 0, 0, 1, 2, 3, 4, 5; gene scoring is unchanged. These rules apply automatically by player count. The other base rules continue to apply, including the first starting amoeba's injury and Tentacle's four-player capacity of three cubes (the translated reference does not state a separate 5–6-player capacity).

The optional extra genes are from Primordial Soup: Freshly Spiced (Ursuppe: Frisch abgeschmeckt). All 26 effects are implemented. Enable the boolean newGenes option (default false), or check New genes before starting a practice game. Direct preview: /?players=6&newGenes=1. The catalogue lives in engine/new-genes.js, with a seeded shuffle, hidden deck and public market. The recommended initial pair is Social Gene and Population Explosion. Two more cards become available each round in phase 3 immediately after the score leader finishes buying, before the next player's purchases. Previously revealed cards remain available. The option is independent of player count; it does not use the platform's expansions array. The viewer supports gene exchanges, healing, remote food selection, excretion destinations, toxins and private forecasts. Forecasts are stripped separately for each recipient and never written to the public journal. Source errata: publisher's corrections.

Implementation conventions for interactions not detailed by the translated reference: Social Gene collects at the start of phase 6, using the scores before movement; Flexible also discounts transfers and the positive price difference of an exchange; Highly Adaptable still requires and consumes an earlier-round prerequisite for an advanced gene. Healing II follows the reference’s explicit immediate death of the injury recipient, even if otherwise healthy. Ordinary injuries (including toxins and More than a Mouthful) wait for phase 5; lethal Bang chain reactions resolve immediately in descending score and amoeba-number order. Suction II takes at most two cubes from a single adjacent space, including diagonals. Rebound can cross one obstacle to a valid space, without wrapping around the board.

The bots are practice opponents, not a competitive AI.

Actions can be undone while the same player remains active in the same phase, until a dice roll, hidden-card reveal or turn handoff. Reversible moves remain pending and undo removes them, including their journal lines. Only the surviving sequence enters the append-only BGS history at the next boundary. isLiveUpdate suppresses turn notifications for pending changes; cumulative timeIncrements retain a high-water mark through undo/retry, so repeating a move never earns additional time. Tentacle cargo adjustments earn no time. Replay commits the requested history prefix before starting an analysis branch.

Gene buying and cell division skip automatically on entry when no legal action is available except Done. This checks free exchanges, discounts, healing, injury transfers and free recovery after extinction as well as ordinary purchases and placements. After a player takes an action, Done remains available so they can Undo before handing over. Population Explosion's income choice also keeps this confirmation. Automatic passes still reveal the leader's next two new genes at the usual time and add no synthetic moves or clock increments.

Publication

Replay uses BGS's first/previous/next/last controls with viewer.replayable: true. Positions count committed moves, so BGS can start an analysis at the same point. Completed and cancelled games reconstruct locally from their saved history. Ongoing games request a bounded logSlice (inclusive end), which adds public board changes and appended journal entries without exposing seeds, future cards, Foresight or pending undoable moves. Ordinary unbounded move notifications retain their original compact format. Returning from replay restores the latest live state. Preview the integration at /?replay (optionally &players=6). Deploy the engine and viewer together when enabling replay for the first time.

BGS entry: primordial-soup, version 1. Keep public: false, metadata unlisted: true, and restrict beta access. The private engine is uploaded as an npm-pack tarball to BGS storage; it is not published to npm. The original rules PDF is hosted as a separate BGS asset and linked from the rules panel.

Artwork is newly drawn SVG, not scans. All 26 new genes have individual illustrations in the gene pool and detail view, following the selected colony's colour. Thirteen also add board traits, including sensing antennae, camouflage, healing patches, suction tubes, a hard crust and a PhD cap. Struggle for Survival adds fangs; Aggression adds fangs, angled brows and spines. Traits combine while retaining the colony's colour and colour-blind symbol. Compare them locally at /?appearance=genes&newGenes=1 or /?appearance=genes.

Movement II has larger, split fins with visible fin rays, distinguishing it from Movement I on the board and in the gene illustrations.

Bundled fonts retain their OFL notices in viewer/assets/.

The display font is a renamed OFL derivative of Lilita One with corrected glyph bounds. Rebuild it with uv run --with fonttools --with brotli scripts/build-display-font.py.

Viewer releases: see uploading the complete viewer build.