No description
  • JavaScript 86.7%
  • CSS 11%
  • Python 1.2%
  • HTML 1.1%
Find a file
2026-09-30 03:03:43 +02:00
.github/workflows Prepare Space Alert scope and real-time mission timing prototype 2026-09-29 23:53:02 +02:00
bgs Keep engine setup fields in the version metadata example 2026-09-30 03:03:43 +02:00
docs Integrate BGS real-time hosting and table-local careers 2026-09-30 03:02:26 +02:00
LICENSES Prepare Space Alert scope and real-time mission timing prototype 2026-09-29 23:53:02 +02:00
mission-data Prepare Space Alert scope and real-time mission timing prototype 2026-09-29 23:53:02 +02:00
preview Integrate BGS real-time hosting and table-local careers 2026-09-30 03:02:26 +02:00
scripts Integrate BGS real-time hosting and table-local careers 2026-09-30 03:02:26 +02:00
src Integrate BGS real-time hosting and table-local careers 2026-09-30 03:02:26 +02:00
test Integrate BGS real-time hosting and table-local careers 2026-09-30 03:02:26 +02:00
.gitignore Integrate BGS real-time hosting and table-local careers 2026-09-30 03:02:26 +02:00
LICENSE.md Prepare Space Alert scope and real-time mission timing prototype 2026-09-29 23:53:02 +02:00
package.json Integrate BGS real-time hosting and table-local careers 2026-09-30 03:02:26 +02:00
README.md Integrate BGS real-time hosting and table-local careers 2026-09-30 03:02:26 +02:00
THIRD_PARTY.md Implement playable Space Alert and New Frontier local engine 2026-09-30 01:38:03 +02:00

Space Alert — Boardgamers

A playable local adaptation of Space Alert and The New Frontier, with a deterministic engine and a French/English browser viewer. Repository: boardgamers/space-alert.

Status: local playtest, under rules review. The game runs through programming, ship resolution and scoring. The BGS adapter is implemented and tested against an isolated platform instance. Public release still needs human playtesting.

Play locally

Node 24+. The standalone playtest and engine tests need no installed packages:

npm test
npm run dev

Open http://127.0.0.1:5250. Start with Flight school / École de vol: seven untimed exercises use the real engine, with editable programs and a teammate already maintaining the computer. The examples cover firing, energy, malfunctions, battlebots/interceptors, double actions, phasing and specializations.

For a full mission, expand Local session / Session locale. Select 1–5 humans, the crew, mission, threat pools and optional modules. In solo, you control four androids and have access to the full action deck. In multiplayer testing, open another tab with ?seat=1, etc. Confirm presence within two minutes; the shared mission starts three seconds after everyone is ready. Select a card half, then a turn. Advance individual phases to lock previous turns, or let the shared clock do so. After programming, the captain can resolve one step at a time or finish the mission; everyone can inspect the replay and log.

The local seat selector, “Ready all” and “Next announcement” buttons are development tools. This host has no authentication and deliberately listens only on 127.0.0.1. It is not an online multiplayer deployment. Use external voice for cooperation; browser speech synthesis is optional and communications-blackout silence relies on the players.

Implemented

  • Trusted host clock, autonomous deadlines, presence cancellation, reconnection, atomic game commands and idempotent command sequences.
  • 34 imported fixed mission schedules, including 18 double-action missions. The randomized mission generator has not been ported.
  • Private hands and permitted card backs; phase packets, incoming data, transfers, android donations, solo programming and shared-slot conflict checks.
  • Exact 90-card base and 90-card double-action decks, 6 heroic cards and all 10 specializations at levels 1–3.
  • Six-station ship, energy, lifts, weapons, battlebots, interceptors, internal repairs, damage, delayed programs and deterministic resolution/replay.
  • 103 threats: 55 base cards and 48 expansion cards, with seven trajectories. Includes called reinforcements, phasing, carriers, polarization, inaccessibility and the special intruder effects.
  • Campaigns of three or five missions: collective continuation, ordered repairs, carried damage, robot placement and final campaign score.
  • Local explorer careers: experience, specialization points, cloning/hardcore death and achievement recording. Verifiable mission constraints are checked; achievements requiring human judgment use an explicit attestation and a link to the official criteria. The group-defined Hometown Hero house achievement is not automated.
  • Responsive FR/EN UI, readable threat effects, grouped cards and hand filters; native page scrolling and a scrollable journal with normal boundary chaining.

Persistence and tests

The local host atomically saves the session, development clock offset and careers to .local/session.json (gitignored). Restarting resumes the same mission; experience completion is applied once by run ID. A saved prototype state from the older schema is backed up as .legacy-backup before a fresh session is created.

npm test covers timing and secrecy, physical card ownership, action/resolution rules, every threat's termination and serializable replay, expansion interactions, campaign repairs, career progression, host restart, and the tutorial examples. Passing tests do not replace a complete human rules audit, especially for combinations of expansion effects.

References and integration

No publisher artwork, scanned cards, rulebook files or official voice recordings are bundled. The viewer uses original HTML/CSS symbols and its own explanatory text. Threat/achievement names remain in English. Code is AGPL-3.0-only; third-party materials retain their notices.

Build for BGS

The viewer requires @boardgamers/protocol 0.7.0, whose npm publication is separate from this repository. After it is published:

npm install
npm run build
npm pack

Before publication, with the BGS monorepo beside this checkout, install the local package instead:

cd ../boardgamers-mono
pnpm --filter @boardgamers/protocol build
cd ../space-alert
npm install --no-save --package-lock=false ../boardgamers-mono/packages/protocol
npm run build

Upload the generated engine tarball and dist/viewer.js through BGS admin. Use the metadata in bgs/gameinfo.json: engine entry bgs/engine.js, viewer global SpaceAlert, game-managed time control, and no Elo. Keep the version private during playtesting. BGS assigns uploaded asset URLs; the example intentionally has no viewer URL. See the integration notes for clock, table and career behavior.