* 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>
* 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>
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>
* 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>
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>
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>