* 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> |
||
|---|---|---|
| .. | ||
| .vscode | ||
| scripts | ||
| 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