mergers-game/scripts
Claude 3db7dbe404 Confirm merger decisions explicitly and warn where undo stops
Survivor choices are now selected first and sent with a confirm button
that names the takeover. The disposal step no longer treats keeping every
share as a default: Confirm stays disabled until the player picks Sell all,
a trade, Keep all or uses the steppers, and its label states exactly what
will happen ("Sell 1 for $200 and trade 2 for 1 Tower"). A live line shows
cash and both chains' holdings after the choice, and the defunct order
confirm lists the chains in order.

Commit boundaries are predicted with the engine's own draftCanContinue on
a throwaway copy of the player's view (now exported from acquire-engine),
so survivor, order and disposal confirms note when undo will no longer be
available. A spec checks the prediction against the full state across
variants (two tiles, bank mode, four hands, swaps, limited log, dropped
players).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 07:27:00 -07:00
..
check-browser.mjs Confirm merger decisions explicitly and warn where undo stops 2026-11-04 07:27:00 -07:00