No description
  • TypeScript 43.6%
  • JavaScript 23.8%
  • Svelte 23.3%
  • CSS 8.8%
  • Python 0.3%
  • Other 0.2%
Find a file
2026-09-09 02:32:26 +02:00
docs Anticipate village arrivals and lava cutoffs with matched AI benchmarks 2026-09-09 02:32:26 +02:00
packages Anticipate village arrivals and lava cutoffs with matched AI benchmarks 2026-09-09 02:32:26 +02:00
scripts Preserve playtest settings and benchmark equipment after pathfinding fix 2026-09-08 22:17:02 +02:00
tests Add random or chosen skills, BGS player clicks and sound controls 2026-09-09 00:01:05 +02:00
.gitignore Implement playable Fuji scenario one with BGS engine and Svelte viewer 2026-09-08 11:04:08 +02:00
.oxfmtrc.json Implement playable Fuji scenario one with BGS engine and Svelte viewer 2026-09-08 11:04:08 +02:00
AGENTS.md Implement playable Fuji scenario one with BGS engine and Svelte viewer 2026-09-08 11:04:08 +02:00
bgs-gameinfo.draft.json Anticipate village arrivals and lava cutoffs with matched AI benchmarks 2026-09-09 02:32:26 +02:00
LICENSE Implement playable Fuji scenario one with BGS engine and Svelte viewer 2026-09-08 11:04:08 +02:00
NOTICE.md Implement playable Fuji scenario one with BGS engine and Svelte viewer 2026-09-08 11:04:08 +02:00
package.json Pace expedition playback with sound and refine journal, equipment choices and AI 2026-09-08 17:58:34 +02:00
pnpm-lock.yaml Implement playable Fuji scenario one with BGS engine and Svelte viewer 2026-09-08 11:04:08 +02:00
pnpm-workspace.yaml Implement playable Fuji scenario one with BGS engine and Svelte viewer 2026-09-08 11:04:08 +02:00
README.md Add seven scenarios and publish the private Fuji playtest 2026-09-08 20:49:43 +02:00

Fuji

A playable first implementation of Wolfgang Warsch’s cooperative game for Boardgamers, with artwork by Weberson Santiago supplied by Feuerland.

This is a private playtest alpha, not a publisher-approved final adaptation. It implements all seven scenarios, two to four players (two-player variant A), all four difficulty levels, six skills and fifteen equipment effects. The visual direction uses the original illustrations as an interactive landscape, with private dice totals, route previews, revealed comparisons and state-driven lava.

Canonical source: codeberg.org/boardgamers/fuji.

Run

Requires Node 24+ and pnpm 11.

pnpm install
pnpm dev

Open http://127.0.0.1:5187. The local harness keeps a playtest in browser storage. Click an adventurer to switch seats. Play next teammate action advances a simple, non-omniscient test player one action; it uses the same cooperative equipment and route heuristics as the platform AI. New game replaces the local save.

pnpm check
pnpm simulate
pnpm fmt

The engine tests cover deterministic replay, invalid-move atomicity, private information, movement, lava, injury timing and equipment interactions. Simulation runs 150 complete expeditions across player counts and difficulty levels and verifies exact replays. Browser smoke testing covers setup, route selection, every round phase, game end, mobile overflow and the help dialog.

Packages

  • packages/engine: pure TypeScript rules, serializable state, seeded randomness, immutable move application and dist/wrapper.js for BGS.
  • packages/viewer: Svelte 5 viewer. Builds a self-contained dist/fuji-viewer.iife.js exposing window.fuji.launch(selector) and a stylesheet. The BGS host owns chat, clocks and the iframe message protocol.
  • scripts/extract-assets.py: reproducible extraction from the supplied production PDFs. Original archives are not included in this repository.
  • docs/rules-status.md: implementation scope, evidence and unresolved rule details.
  • docs/bgs-integration.md: packaging, protocol and remaining platform integration work.

Artwork

The supplied artwork is embedded in optimized WebP assets. Its copyright remains with the respective rights holders; the source-code license does not license the illustrations. The PDFs contain illustrations separate from symbols, but do not supply editable scene layers. Further art direction and animation work can build on this first playable version.

Code, identifiers, documentation and current UI copy are in English.

Browser checks

With pnpm dev already running and a current pnpm build:

pnpm exec playwright install chromium
pnpm test:browser

If Chromium is already installed in a non-default location, set FUJI_CHROMIUM_EXECUTABLE to its executable path. Screenshots are written under the ignored work/browser directory. The second smoke test loads the actual production bundle with a minimal BGS emitter host, checks readiness and state refresh, verifies the move payload, and confirms that Wireless exposes the correct dice without loading the local harness.

Private release: build with pnpm check, pack the engine with pnpm --filter fuji-engine pack --pack-destination ../.., then run BGS_TOKEN_FILE=/path/to/token node scripts/publish-private.mjs. The script registers private version 1, uploads bundles and rules, and grants Spock and AlphaZero access. It refuses to overwrite an existing game without review.

Run FUJI_ALL_SCENARIOS=1 pnpm simulate for 1,050 seeded expeditions across all seven maps.