No description
  • TypeScript 84.8%
  • Svelte 8.3%
  • JavaScript 6.6%
  • CSS 0.2%
Find a file
Claude 3db7dbe404 Confirm merger decisions explicitly and warn where undo stops
Survivor choices are now selected first and sent with a confirm button
that names the takeover. The disposal step no longer treats keeping every
share as a default: Confirm stays disabled until the player picks Sell all,
a trade, Keep all or uses the steppers, and its label states exactly what
will happen ("Sell 1 for $200 and trade 2 for 1 Tower"). A live line shows
cash and both chains' holdings after the choice, and the defunct order
confirm lists the chains in order.

Commit boundaries are predicted with the engine's own draftCanContinue on
a throwaway copy of the player's view (now exported from acquire-engine),
so survivor, order and disposal confirms note when undo will no longer be
available. A spec checks the prediction against the full state across
variants (two tiles, bank mode, four hands, swaps, limited log, dropped
players).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 07:27:00 -07:00
.githooks Acquire for boardgamers.space 2026-10-22 09:54:46 -06:00
docs Remove obsolete sidebar chat hiding metadata 2026-10-31 18:38:04 +01:00
packages Confirm merger decisions explicitly and warn where undo stops 2026-11-04 07:27:00 -07:00
scripts Confirm merger decisions explicitly and warn where undo stops 2026-11-04 07:27:00 -07:00
.gitattributes Acquire for boardgamers.space 2026-10-22 09:54:46 -06:00
.gitignore Acquire for boardgamers.space 2026-10-22 09:54:46 -06:00
.nvmrc Acquire for boardgamers.space 2026-10-22 09:54:46 -06:00
.oxfmtrc.json Acquire for boardgamers.space 2026-10-22 09:54:46 -06:00
.oxlintrc.json Acquire for boardgamers.space 2026-10-22 09:54:46 -06:00
AGENTS.md Add configurable three, four or five share purchase limit 2026-10-29 21:17:50 +01:00
LICENSE Initial commit 2026-10-22 09:53:13 -06:00
package.json Prepare Acquire private beta with localized tutorials and BGS integration fixes 2026-10-22 18:37:26 +02:00
pnpm-lock.yaml Prepare Acquire private beta with localized tutorials and BGS integration fixes 2026-10-22 18:37:26 +02:00
pnpm-workspace.yaml Acquire for boardgamers.space 2026-10-22 09:54:46 -06:00
README.md Add an optional limited game log 2026-10-27 16:46:18 -06:00
rules.md Add configurable three, four or five share purchase limit 2026-10-29 21:17:50 +01:00
tsconfig.base.json Acquire for boardgamers.space 2026-10-22 09:54:46 -06:00

Acquire for boardgamers.space

An unofficial implementation of Sid Sackson's Acquire for boardgamers.space, for 2 to 6 players. Not affiliated with or endorsed by Hasbro, Avalon Hill, Renegade Game Studios or any other publisher of Acquire.

  • AGENTS.md: agent instructions, current BGS status and publishing workflow.
  • packages/engine: the rules engine. wrapper.ts implements the BGS Engine API.
  • packages/viewer: the Svelte viewer, built as one IIFE bundle for the BGS iframe.
  • rules.md: the rules the engine follows. Tests cite its section numbers.
  • docs/registering.md: how to publish the engine and viewer to BGS.
  • docs/admin/: the text, pictogram and screenshots for the BGS admin panel.

Setup

Requires Node 24 and pnpm 11 (corepack enable pnpm provides pnpm).

pnpm install
pnpm check

pnpm check checks formatting, lints, type-checks, runs the tests and builds both packages. To run it before every commit, enable the hook with git config core.hooksPath .githooks.

Playing locally

pnpm build
pnpm dev

Open http://localhost:5173. The test page runs the engine in the browser and shows the viewer as each player sees it. With hot seat on, it switches to whoever must act, so one person can play every seat. The toolbar plays random moves, jumps to the next merger, and switches player, theme and language.

URL parameters: players=2..6, seed=..., publicHoldings=1, teamPlay=1, autoEnd=1, endSize=31, twoPlayerMode=fourHands, stockSwap=3 (or 5, 7, unlimited), twoTiles=1, limitedLog=1, theme=light|dark, locale=de, moves=50 (random moves on load), merger=1 (continue to the next merger).

What ships

The test page (packages/viewer/index.html, src/dev.ts, dev-badge.svg) is never part of what BGS runs, so nothing needs removing for live:

  • The viewer build bundles only src/viewer.ts and what it imports, into acquire-viewer.iife.js and acquire-viewer.css.
  • The engine package (pnpm pack in packages/engine) contains only dist/ and package.json.

Each GitHub Release has the built engine package and viewer files attached, ready to upload.

Licence

AGPL-3.0. See LICENSE.

Interactive tutorials and browser checks

After pnpm build, open the dev server with ?bundle=1&tutorial=founding (or mergers, scoring). Add &locale=fr to switch languages. Tutorials use the real engine, remember progress locally and support replaying a step or restarting.

pnpm test:browser starts its own Vite server on port 5191 and checks the compiled viewer, not a source-only preview. Install Chromium once with pnpm exec playwright install chromium. Screenshots and the report go to ignored release/qa/. Set ACQUIRE_TEST_URL to reuse an existing dev server.