powergrid/engine
goldjohn6 1a8c74f55e
Seed the bots in the Spain & Portugal Step 2 test (#175)
The test seeded the game but not the bots, which choose with Math.random,
so a game could now and then draw the Step 3 card during Step 1 and skip
Step 2 (Engine - Test failed this way on master after #173, then passed on
re-run). A sweep of 400 bot seeds: deck2 skips Step 2 in 13 games (3.3%),
deck1 in 1. Seeding Math.random per deck, as wrapper.spec does, makes the
test the same on every run.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 09:25:51 -08:00
..
.vscode ✨ (all) Add Germany map, update map structure 2021-10-27 22:49:46 -03:00
scripts It's Chile time! (#171) 2026-11-17 12:41:45 -08:00
src Seed the bots in the Spain & Portugal Step 2 test (#175) 2026-11-21 09:25:51 -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 Release phase auto-pass engine 2.0.37 and viewer 2.3.32 2026-11-17 22:21:20 +00:00
package.json 🔖 powergrid-engine 2.0.38 2026-11-20 19:23:09 +00:00
pnpm-lock.yaml Add Power Grid endgame achievements for coordinator review 2026-11-14 00:45:55 +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 Release phase auto-pass engine 2.0.37 and viewer 2.3.32 2026-11-17 22:21:20 +00: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