Commit graph

938 commits

Author SHA1 Message Date
github-actions
e39daffab6 🔖 powergrid-engine 2.0.22 2026-11-01 16:24:40 +00:00
goldjohn6
3c6719acaa
Wien garbage never free in Central Europe; UK & Ireland "completely vacant city" wording (#162)
* Never let the Wien discount make garbage free in Central Europe

Both Central Europe rulebooks (Original 2006/2011 and Recharged) give a
player connected to Wien garbage at $1 off "with the stipulation that his
cost per piece may not be 0": from the first space he pays $1. The engine
and the market box subtracted $1 with no floor, so a full market sold
garbage for $0. Engine, available moves and the box now share one price.

Six ended games on the server did buy garbage for $0. A game whose log
already shows such a buy is rebuilt with the old discount
(reconstructionOptions), so history and analysis replay them as played;
no live game has one, so they all get the floor from their next buy.

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

* Say UK & Ireland island jumps need a completely vacant city

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

* Reword the UK & Ireland jump rule in every language

"An EMPTY spot" read like a free slot in an occupied city; the engine only
allows a jump to a city with no houses at all. Re-keys the 17 catalogues.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 08:20:20 -08:00
github-actions
bf4433dd84 🔖 powergrid-viewer 2.3.17 2026-10-31 16:46:35 +00:00
github-actions
596f929469 🔖 powergrid-engine 2.0.21 2026-10-31 16:44:59 +00:00
goldjohn6
aa29b7cf7c
Recharged starting garbage for Brazil and France. (#161)
* Start France and Brazil Recharged with garbage on spaces 6-8

Both Recharged rulebooks fill garbage (biogas in Brazil) on spaces 6-8, i.e.
9 tokens, but the maps' single startingResources array held the Original
count of 6 for both variants. startingResources can now name each variant.

Games created before this keep their original market when rebuilt: setup
records rechargedStartingResources for new games, and replay/reconstructState
treat a missing flag as the old behaviour.

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

* Format PlayerBoard.vue with Prettier

Whitespace only; master's prettier check has failed on this file since 3adad0c.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:39:44 -07:00
github-actions
d3ecf28424 🔖 powergrid-engine 2.0.20 2026-10-31 16:38:57 +00:00
3adad0cc0d Release auction auto-pass with a personal player-card setting 2026-10-26 20:42:38 +01:00
22d4a0b80c Release viewer 2.3.14 with stable board layout and readable player column 2026-10-25 14:09:57 +01:00
295d50da8b Add optional Recharged plant discount cutoff at Step 3 2026-10-24 21:51:58 +02:00
ee31b0be68 Show regional power plants correctly in the journal 2026-10-24 21:46:17 +02:00
537e41e318 Add hand-authored Simplified Chinese game localization 2026-10-20 14:12:18 +02:00
github-actions
4873f48657 🔖 powergrid-viewer 2.3.11 2026-10-19 19:40:20 +00:00
github-actions
7ff589d3b3 🔖 powergrid-engine 2.0.17 2026-10-19 19:38:25 +00:00
goldjohn6
3f9295292a
Make Bremen easier to read: larger district tiles and a tighter board (#160)
Amy (70s eyes) found Bremen's district text hard to read.

- Viewer: every part of a node-weighted district tile scales by one factor
  (TILE_SCALE = 1.3): the diamond, house slots, slot numbers, entry-cost coin
  and the houses placed in them, so the pieces keep their relative places.
- Engine: Blumenthal, Vegesack and Burglesum move down and right (placed with
  the coord picker), which narrows the board so the adaptive layout zooms it
  in. Hofen moves down 20 so the Burglesum-Seehausen link no longer clips it.
  Adjacency and rules are unchanged; only x/y move.
- Geography: Bremen's outline is regenerated from the updated anchors, so the
  land follows the new positions. Other maps' assets are untouched.

New district positions reach new games only (map data is stored at setup);
the larger tiles reach every game on reload.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 12:32:33 -07:00
a28bf041c0 Refresh custom player colours when live preferences change 2026-10-17 22:52:37 +02:00
464b8e5d88 Use custom BGS colours without replacing other players' colour choices 2026-10-17 22:49:03 +02:00
287343f11c Release viewer 2.3.8 preserving custom BGS colours after colour selection 2026-10-17 22:35:40 +02:00
github-actions
ef972c74fc 🔖 powergrid-viewer 2.3.7 2026-10-12 03:02:02 +00:00
github-actions
42861a256e 🔖 powergrid-engine 2.0.15 2026-10-12 02:59:39 +00:00
mmunson99
c50b5951a1
Add an alternate power plant deck option for Europe and North America (#159)
* Add an alternate power plant deck option for Europe and North America

New game option `alternatePowerPlants`. On the Europe and North America maps it
replaces the standard deck with the alternate deck: same card numbers, new
fuels and outputs. The option is ignored on every other map.

The deck adds a garbage/oil hybrid plant type (plants 8, 22 and 35). It burns
any mix of garbage and oil and has one shared storage tank, like the coal/oil
hybrid. Buying, storage, discarding, powering and end-game scoring all handle
the shared tank. Players without that plant keep the existing coal/oil logic
unchanged, and games without the option keep their exact state shape.

* Draw alternate-deck plants in the journal from the alternate deck

The journal drew every plant through getPowerPlant(number, mapName), which
only knew the India and standard catalogues. In an alternate-deck game the
journal showed the standard card for each number: 22 appeared as a wind 2,
27 as a wind 3 and 33 as a wind 4.

getPowerPlant now looks plants up through plantCatalogue, so it takes an
alternatePowerPlants flag. The journal passes the game's option through.
Every other caller passes no flag and gets the same card as before.

Found in a hand playtest of this PR on Europe.

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

---------

Co-authored-by: John Gold <goldjohn6@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 19:55:02 -07:00
aac09f231d Release viewer 2.3.6 with mobile resource buying and refill previews 2026-10-10 10:26:33 +02:00
e90041904b Offer "Undo my move" in games against bots
BGS lets the only human of a game against bots take back their last saved
move (protocol 0.10.0 `undo:available` / `undo`). The board's Undo button
offers it once the turn in progress has nothing left to undo locally, and
never during replays, analyses or round planning, for spectators, or while a
move is on its way. A double click on Undo cannot reach it.

BGS then sends the earlier state. A committed state that takes back the
player's own moves drops the turn buffer, a bid being edited, open dialogs,
a hybrid plant's fuel choice and the bid dialled into the calculator.

The label is translated in all 16 languages. Unit tests and the protocol
browser smoke cover the control, and the development sandbox mimics BGS's
undo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 11:41:51 +02:00
6555a17222 Repair the viewer build and formatting checks
The viewer lockfile still pinned @babel/preset-env 7.14, which rejects the
plugin names babel.config.js has listed since 126de02: a clean install could
not build the viewer, and Viewer - Test has failed since then. Lock the
versions the viewer on BGS was built with instead. With them, ca9882a rebuilds
the published viewer (game version 13) byte for byte. The lockfile keeps its
lockfileVersion 5.4 Prettier layout.

Also sorts the imports of two unit tests, as the Prettier check requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 11:15:45 +02:00
873d5e0cab Add a Random map option that picks a map at setup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:56:43 +02:00
ca9882a5c9 Show building capacity only on the viewing player turn 2026-10-06 16:20:47 +02:00
3e7abbbebc Show plant power capacity on the city track during building 2026-10-06 16:14:48 +02:00
55581e0f6d Use consistent outlined ownership symbols for all house markers 2026-10-05 18:36:07 +02:00
48ae6ee863 Enlarge and center map ownership symbols with white outlines 2026-10-05 18:31:44 +02:00
b597ae7b33 Keep desktop cities readable by allowing taller boards 2026-10-05 16:40:33 +02:00
126de02ea2 Reuse auction controls for pending bids and distinguish phase actions 2026-10-05 16:18:56 +02:00
26c4e5c245 fix: replace pending powering choices without growing history 2026-10-05 02:10:09 +02:00
9dbb0df766 feat: allow revising sealed bids and powered plants 2026-10-05 01:36:01 +02:00
8bdce611bb chore: align formatting checks with generated geography data 2026-10-05 01:35:46 +02:00
62afa6c272 Release viewer 2.3.2 2026-10-04 23:25:51 +02:00
1784b25243 Compact board controls when city markers are too small 2026-10-04 23:24:38 +02:00
712883af4b Release viewer 2.3.1 2026-10-04 23:10:36 +02:00
96c10c8826 Expand maps into unused space beside board labels 2026-10-04 23:09:42 +02:00
1c1ab91e43 Release viewer 2.3.0 with adaptive layout and faded map regions 2026-10-04 21:43:07 +02:00
68f3f106ee Clip geographic backgrounds to fitted board bounds in viewer 2.2.1 2026-10-04 20:48:58 +02:00
ec0f68d4f2 Document the geographic background release 2026-10-04 20:45:25 +02:00
a1496b05ee Release Power Grid viewer 2.2.0 with geographic backgrounds 2026-10-04 20:44:46 +02:00
bc642716de Restore Australia's resource slot grid and centre market tokens 2026-10-04 20:40:44 +02:00
8ffae33978 Reuse the uranium token for Australia's mine market and card badges 2026-10-04 20:36:57 +02:00
ad585972a7 Show Australia's uranium removal beside resource refill badges 2026-10-04 20:33:22 +02:00
d53bba2858 Extend geographic backgrounds across the full board and clear Australia's income track 2026-10-04 20:24:47 +02:00
80435911ea Add fitted geographic backgrounds for all Power Grid maps 2026-10-04 19:54:45 +02:00
38cb279038 Prototype geographic backdrops for Germany and UK Ireland 2026-10-04 19:15:02 +02:00
0a86852f05 Save AI research handoff and completed diagnostic audit 2026-10-04 19:02:47 +02:00
face347f25 Use red outlines for power plant discard choices 2026-10-04 18:48:53 +02:00
1e73e53664 Integrate AI research and harden analysis autoplay 2026-10-04 11:38:12 +02:00