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. |
||
|---|---|---|
| .. | ||
| .vscode | ||
| src | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| .pnpm-debug.log | ||
| .travis.yml | ||
| index.ts | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
| wrapper.ts | ||
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