powergrid/engine
goldjohn6 0edd7fd8a7
HawaiiCustom: a new custom map (island prices, ferry, shipped-in fuel) (#172)
* HawaiiCustom draft: custom map, ferry curve, sea crossings, house-price legend

Local draft for the community custom-map thread (not for release yet).
- engine: HawaiiCustom map (44 cities, 6 regions, house prices by island,
  payout +1, Kauai-Big Island ferry); customMaps list (by name only, never
  Random); GameMap.paymentTable / houseLegend; Connection.via / sea /
  ignoreForRegions
- viewer: curved via-links, dashed blue sea crossings, house-price legend,
  Hawaii land outlines, ?fullmap=1 for layout checks
- tests: hawaii-custom.spec.ts

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

* HawaiiCustom: Kauai at standard prices, shipped-in fuel (coal 2, oil 4)

Kauai already had the cheapest links on the board, so cheap houses on top made
it too strong (BootlegTampico on Discord); it moves to the standard 10/15/20.
Fuel is shipped in: the market starts with the three cheapest coal and oil left
in the supply, so coal starts at 2 and oil at 4. Garbage and uranium start as
each variant has them (Recharged still fills garbage to 9). Rules text updated.

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

* Achievements: community custom maps get no Champion badge

Master's achievements give every map a Champion badge typed as
Record<MapName, string>, so adding HawaiiCustom broke the build. A badge needs
its own artwork and a manifest publication, so custom maps are left out for
now (the lookup already handles a map with no badge). A test covers a
HawaiiCustom win: grid-champion and full-table, no map badge.

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

* Geography test: cover custom maps (Hawaii has no neighbouring coast)

The catalog now holds Hawaii, so the count is standard maps plus custom maps,
and Hawaii is checked like the others. Its context is empty on purpose: it
sits in open ocean, with no other coast inside its frame.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:47:14 -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 HawaiiCustom: a new custom map (island prices, ferry, shipped-in fuel) (#172) 2026-11-17 12:47:14 -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 Fix dropped-player setup progression and release engine 2.0.35 2026-11-14 18:19:54 +00:00
package.json Fix dropped-player setup progression and release engine 2.0.35 2026-11-14 18:19:54 +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 Fix dropped-player setup progression and release engine 2.0.35 2026-11-14 18:19:54 +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