No description
  • JavaScript 89.1%
  • CSS 10.9%
Find a file
2026-10-06 22:47:28 +02:00
bgs Enable hosted one-player games with two automatic Puertomas 2026-10-06 21:57:32 +02:00
docs Complete Achievement deck and Puertoma solo playtest 2026-10-06 20:07:45 +02:00
engine Prioritize Festival dispatch ships for Puertoma 2026-10-06 20:10:45 +02:00
scripts Enable hosted one-player games with two automatic Puertomas 2026-10-06 21:57:32 +02:00
test Enable hosted one-player games with two automatic Puertomas 2026-10-06 21:57:32 +02:00
viewer Separate achievement goods with slashes 2026-10-06 22:47:28 +02:00
.gitignore Add Puerto Rico Special Edition playable preview and modular engine 2026-10-01 12:46:56 +02:00
AGENTS.md Enable hosted one-player games with two automatic Puertomas 2026-10-06 21:57:32 +02:00
package.json Enable hosted one-player games with two automatic Puertomas 2026-10-06 21:57:32 +02:00
pnpm-lock.yaml Use shared BGS preferred colourblind player symbols 2026-10-02 11:07:50 +02:00
pnpm-workspace.yaml Show Supporter badges supplied by the platform 2026-10-01 23:56:32 +02:00
README.md Enable hosted one-player games with two automatic Puertomas 2026-10-06 21:57:32 +02:00
release-config.js Complete Achievement deck and Puertoma solo playtest 2026-10-06 20:07:45 +02:00

Puerto Rico: Special Edition

Play now at boardgamers.space

Implementation for Boardgamers Space, targeting Puerto Rico 1897: Special Edition and the official June 2026 errata. Version 1 is published as a private beta on BGS, with Unlisted disabled. The engine package is @boardgamers/puerto-rico@0.2.2; English and French are configured in the platform metadata.

pnpm install
pnpm dev
# http://127.0.0.1:5251/?locale=fr

The local preview lets you play one seat with two ordinary bots. For the rules-based solo opponent, open http://127.0.0.1:5251/?mode=puertoma&locale=fr (optionally &difficulty=easy or &difficulty=hard). Solo begins by choosing four of six Achievement cards; its save is separate from the ordinary preview, whose existing session is preserved.

The initial building selection is performed automatically so you can start with role selection. The actual engine has the full shared building selection phase. Local progress is saved in the browser. The small local toolbar offers undo, opponent turns, restart and light/dark; it is absent from the hosted viewer.

Edition configuration

release-config.js defines one fixed Special Edition configuration. bgs/engine.js uses it regardless of creation-form expansion fields; the BGS metadata intentionally exposes no expansion picker or game options. The core engine in engine/index.js accepts independent expansion switches for future configuration, simulation and tests.

Implemented modules:

  • Base game, 2–5 players, including the classic two-player rules.
  • New Buildings: all 14 building types and cost-constrained shared market selection.
  • Citizens: 20 citizens, 8 building types, occupancy-dependent effects and scoring.
  • Smuggler: all four actions, role capture, surplus worker/citizen choices.
  • Festival: three shared objectives and physical resource reservations.
  • Festival Activities: all 12 activity definitions, three drawn per game.
  • Achievements: the complete 30-card deck, secret dealing, optional internal draft, automatic completion and endgame scoring.
  • Puertoma: exact eight-card tiebreaker deck, shared action tracker, permanent workers, estate production, building levels and reservations, all 12 ability types, three difficulty levels and expansion interactions. Available by choosing 1 player on BGS, through local solo preview, or internal options.puertoma = { humans: 1, difficulty: "normal" } with three total seats.

The fixed multiplayer BGS configuration includes all six expansion modules. Choose 1 player on BGS to start a solo game against two automatic Puertomas at normal difficulty. Their turns resolve automatically on the server; the platform tracks only the human participant, while the viewer and replay show all three boards and final scores. Hosted multiplayer bot seats continue to use the human rules. See source notes for provenance and the Festival unique-building marker interpretation.

The engine accepts the optional costSwap, alternativeStart, tailorLimit, pairingRestrictions and achievementDraft balance variants internally. They are disabled in the fixed configuration and not exposed in the UI.

Viewer and integration

  • French and English, using the platform locale; no language controls.
  • Distinct goods pictograms; color is supplementary.
  • Paper, terracotta and sea-green visual theme in light/dark modes; original vector town illustration, larger corn and a repeat-privilege pictogram.
  • Editable worker allocation, goods storage, building payment choices, private shipping, Achievement selection and final scoring.
  • Contextual role warnings explain unavailable actions before committing a choice, including role coins and building rewards. They remain advisory; legal strategic choices are preserved.
  • Desktop and mobile layout, incremental DOM updates, native page and modal scrolling.
  • BGS chat and replay, concealed VP totals, server-only randomness and future draws.
  • Deterministic ordinary bots for local testing and BGS bot seats.

Validation

pnpm test           # rule scenarios, legal complete games, resource conservation, replay
pnpm build          # dist/engine.js, dist/viewer.js, local sandbox
pnpm test:browser   # 320/390/768/1440px, real viewer events, chat/journal scrolling

The implementation remains a preview pending playtesting, and the Festival marker interpretation noted above. Original vector UI artwork is in viewer/icons.js; reference scans in .local/ are ignored and never bundled.

Private BGS publication

pnpm publish:private builds the bundles, packages only the self-contained engine and its manifest, checks complete 1–5-player games from the extracted package, and uploads the engine/viewer to BGS. The script reads the admin token from ~/.bgs without logging it, preserves the existing game/request identity, refuses to replace a public version, and verifies the private/listed flags and CDN bytes. It grants beta access to coyotte508 if needed. Metadata snapshots and package artifacts stay in ignored .local/release/.

The hosted bundle has no local preview controls or runtime asset dependencies. Global BGS locale and color-blind preferences are handled by the viewer; expansion switches remain internal. Tutorials are not yet registered.