No description
- TypeScript 58.1%
- Vue 15.9%
- JavaScript 13.9%
- Python 9.8%
- Shell 2.1%
- Other 0.2%
* SwitzerlandCustom: a new custom map (Alpine hydro, neutral Geneva, helicopters) The seven Swiss Grossregionen, 49 cities, 95 links priced from real distances (+6 into an Alpine city, +2 over a named pass; Gotthard 16). - Alpine hydro: each ecological or fusion plant fired powers one more city, but only as many of those plants as the player owns Alpine cities (City.alpine; alpineBonusLeft / alpineEligible; calculateMaxCitiesPowered). - Geneva is neutral: all three spaces open from Step 1 (stepSlots [3,3,3]). - Lake Geneva steamer (sea), Glacier Express, three outskirt helicopters (Connection.air, drawn dotted and curved clear of cities). The Glacier Express, Oberalp and helicopters never decide which regions are dealt together; Ticino gets the Gotthard Base Tunnel and the Lukmanier. - Viewer: Swiss outline (landlocked: neighbours all round), and the faded unplayed regions now cover community custom maps too, without curved links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * SwitzerlandCustom: green plants only for the Alpine +1; an expensive country - The Alpine +1 is for green (ecological) plants only, never fusion (John: 6 + 1 = 7 from one card is too strong). Rules text says so explicitly. - Starting market: coal opens at $3 and oil at $4, while cheese is plentiful and opens at $5; uranium as usual ([18, 15, 12, 2], both editions). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep the Central Europe comment on garbagePrice Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * SwitzerlandCustom: power plants send the engine's offer; Alpine peaks Found in John's local playtest: the viewer built its own UsePowerPlant move from the printed card, so the engine refused a green plant with the Alpine +1. A single-fuel plant now sends the engine's own offer (hybrids keep the mix the player picked). freePlantMoves takes each offer after the previous plant fires (on a copy), since the Alpine +1 is shared out; the powered-cities count includes it. A snow-capped peak sits behind each Alpine city. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * SwitzerlandCustom: cheese opens at $6 (John, after his playtest) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * SwitzerlandCustom: the building-phase power capacity counts the Alpine +1 Found in John's playtest: 18 + 30 + 20 with Alpine cities showed 13, not 14. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * SwitzerlandCustom: the Glacier Express drawn as a red railway Connection.rail (visual only): red rails over a pale bed, crossed by red ties. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .devcontainer | ||
| .github | ||
| .husky | ||
| ai | ||
| art/achievements | ||
| docs | ||
| engine | ||
| scripts | ||
| viewer | ||
| .editorconfig | ||
| .gitignore | ||
| .gitpod.dockerfile | ||
| .gitpod.yml | ||
| .npmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| AGENTS.md | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
Power Grid
Mono repo containing the viewer & the engine for Power Grid
Checkout their READMEs:
Play online at
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.