No description
  • TypeScript 58.1%
  • Vue 15.9%
  • JavaScript 13.9%
  • Python 9.8%
  • Shell 2.1%
  • Other 0.2%
Find a file
goldjohn6 bbe533ee8d
Show plug cards on the draw pile for every deck (#168)
* Show plug cards on the draw pile for every deck

The draw pile darkens when its top card is a plug card, and the engine
decided that by comparing the plant number with 15. That was right for the
standard deck only. Deck 1 has plug cards up to 16, and the shuffled decks
mix in copies such as 16.1 and 15.2, so in those games a plug card on top
was shown as an ordinary one.

Ask the deck instead, with the isPlugPlant() rule the decks already use.
For the standard deck (and India, and Deck 2) it is the same test as
before, so those games cannot change.

Measured over seeded 3p/5p Recharged games on Italy, USA and Germany:
before, 41/3112 states wrong on Deck 1, 40/3278 on shuffled, 31/3420 on
shuffled-unique, 0/3338 on standard; after, 0 on all four. The new test
fails on the old code ("deck1: 16 on top: expected false to equal true").

Found while answering Frankie_Stein's report on Italy_Rechrg_1103 (a
standard-deck game, so this is not the cause of that report).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix the engine lint error that has kept CI red since 2.0.26

`pnpm lint` fails on master since e954346: prefer-const flags `bidder` and
`plant` in sealed-bid-privacy.spec.ts, destructured with `let` alongside
`state`, which is reassigned. Split the destructuring; the test is unchanged
and still passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:09:28 -08:00
.devcontainer prettier 2025-08-09 20:56:35 +00:00
.github feat(viewer): localize interface and tutorials in 15 languages 2026-09-25 16:30:05 +02:00
.husky Initial 2021-10-13 00:09:21 -03:00
ai chore: align formatting checks with generated geography data 2026-10-05 01:35:46 +02:00
docs Release engine 2.0.27 and viewer 2.3.28: correct replay deck counts 2026-11-10 23:20:59 +00:00
engine Show plug cards on the draw pile for every deck (#168) 2026-11-11 11:09:28 -08:00
scripts Release auction auto-pass with a personal player-card setting 2026-10-26 20:42:38 +01:00
viewer Release engine 2.0.27 and viewer 2.3.28: correct replay deck counts 2026-11-10 23:20:59 +00:00
.editorconfig Initial 2021-10-13 00:09:21 -03:00
.gitignore Add search supervision, paired arenas and CPU-guided inference 2026-09-30 16:31:52 +02:00
.gitpod.dockerfile Initial 2021-10-13 00:09:21 -03:00
.gitpod.yml Initial 2021-10-13 00:09:21 -03:00
.npmrc Initial 2021-10-13 00:09:21 -03:00
.prettierignore chore: align formatting checks with generated geography data 2026-10-05 01:35:46 +02:00
.prettierrc Initial 2021-10-13 00:09:21 -03:00
AGENTS.md Integrate AI research and harden analysis autoplay 2026-10-04 11:38:12 +02:00
package.json feat(viewer): localize interface and tutorials in 15 languages 2026-09-25 16:30:05 +02:00
pnpm-lock.yaml update engine-publish 2025-08-09 21:12:39 +00:00
pnpm-workspace.yaml Show platform Supporter badges and preferred player colours 2026-10-01 23:56:32 +02:00
README.md Merge commit '76988deb8a' into feat/ongoing-analysis-scenarios 2026-09-30 14:26:32 +02:00

Power Grid

Mono repo containing the viewer & the engine for Power Grid

Checkout their READMEs:

Play online at

boardgamers.space

Reach out to us if you want to contribute.

Install

Do pnpm install in the main folder

Test locally

After the installation step, you can run the viewer with:

cd viewer
npm run serve

It will use the engine in its sibling folder

Viewer releases: see uploading the complete viewer build.