powergrid/engine
MikeIsom fcc0a127d9
Deal a standard-sized deck for "all three decks shuffled" (#166)
Shuffled games put every plant of all three decks in play, leaving about
114 cards in the draw pile, so games rarely reached Step 3. New shuffled
games instead draw 42 plants at random from all three decks, keeping the
standard deck's 13 plug and 29 socket cards plus the Step 3 card; the
usual player-count removals still apply. Duplicates and missing numbers
are possible, unlike the one-per-number deck.

New games store options.shuffledSample. Older shuffled games have none
(reconstructionOptions forces it off), so they keep the full pile and
replay exactly as before.
2026-11-08 08:50:04 -08:00
..
.vscode ✨ (all) Add Germany map, update map structure 2021-10-27 22:49:46 -03:00
src Deal a standard-sized deck for "all three decks shuffled" (#166) 2026-11-08 08:50:04 -08:00
.eslintignore 💚 (engine) add dist folder to eslint ignore 2021-10-29 18:30:11 -03:00
.eslintrc.js China: correct seven city names and the Changchun-Jilin cost (#59) (#117) 2026-08-14 09:26:23 -07:00
.gitignore Initial 2021-10-13 00:09:21 -03:00
.pnpm-debug.log Initial 2021-10-13 00:09:21 -03:00
.travis.yml Initial 2021-10-13 00:09:21 -03:00
index.ts feat: allow revising sealed bids and powered plants 2026-10-05 01:36:01 +02:00
LICENSE Initial 2021-10-13 00:09:21 -03:00
package-lock.json 🚨 (engine) Fix lint 2022-02-04 09:38:54 -03:00
package.json 🔖 powergrid-engine 2.0.23 2026-11-04 22:14:53 +00:00
pnpm-lock.yaml Revert "add devcontainer and specify pnpm version" 2025-08-09 20:52:36 +00:00
README.md Running pretter, fixing names 2021-10-22 19:29:36 -03:00
tsconfig.json ✅ (engine) add full game tests 2021-11-21 15:04:44 -03:00
wrapper.ts Wien garbage never free in Central Europe; UK & Ireland "completely vacant city" wording (#162) 2026-11-01 08:20:20 -08:00

powergrid-engine

Typescript engine for Power Grid.

Setup

Requirements

Recent version of node / pnpm.

Dependencies

In the project's folder:

pnpm

Build

To compile Typescript into javascript:

pnpm build

Test

pnpm test