Commit graph

27 commits

Author SHA1 Message Date
9e9120ca6e Prepare Acquire engine and viewer November release 2026-11-04 18:11:04 +00:00
Claude
2894388bab Fix stock swap panel crash when a default chain is off the board
The redesigned swap panel priced its initial Tower/Continental pair
before picking a real choice, so any buy step where the player held
shares and either chain was off the board threw and left the viewer
on "Loading game". Never price a chain off the board, and add a
browser check for such a position.
2026-11-04 08:07:31 -07:00
Mike Isom
dc8d0f4d85 Merge merger confirmations, turn summary and clearer stock trading
# Conflicts:
#	packages/engine/index.ts
#	packages/viewer/src/lib/ActionPanel.svelte
2026-11-04 07:32:12 -07:00
Claude
84f84302b6 Clarify stock buying and swaps
Buy panel: each chain row shows how many shares you own and what you will
own after this purchase, and a disabled "+" now says why (none left in the
bank, not enough cash, or the per-turn limit reached).

Stock swap panel: the selects say "you have N" and "bank has N" instead of
bare numbers, the quantity is a -/+ stepper with its maximum, the preview
spells out both legs with their values and the net payment, a live line
shows cash and both holdings after the swap, the confirm button states the
exact exchange ("Swap 2 Tower for 2 Continental · Pay $800"), and an
unavailable pair explains why (no swaps left, bank empty, not enough cash).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 07:28:05 -07:00
Claude
2bdb95f23d Show a turn summary before the step that ends the turn
When the next move would end the turn (the buy, or a placement or decision
that passes the turn on), the viewer holds it back and shows this turn's
moves in plain language from the log (placements and their effects,
foundings, merger results and disposals, swaps), the pending move, the
cash and shares it leaves, and why it is final: ending the turn draws new
tiles, or the game ends and is scored. "End turn" sends it, "Back" returns
to the choice, and Undo steps back through the private draft from the
summary. Lines already saved before the last commit boundary are greyed.

A placement that would make earlier undoable moves permanent (a two-tile
turn whose second tile pays merger bonuses) gets the same review. A lone
placement that ends the turn keeps only its own placement confirmation, and
tutorials keep their single-step flow. Undo after the turn has committed is
still impossible: the end-of-turn draw reveals the next tile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 07:27:13 -07:00
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
Mike Isom
d8dd85060a Merge relaxed two-tile limits and hand size option 2026-11-04 07:03:19 -07:00
Claude
2ffadb9ae4 Stack desktop panels in independent columns
The desktop grid shared rows with the board, so the decision/hand column and
the chains column stretched to the board's height and left large empty areas.
Group the panels into columns that stack independently: board and players;
decision, hand and chains; history and chat. Tablets keep the board and
players beside the decision, hand and chains, with history and chat below.
Phones place the panels individually as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 06:58:56 -07:00
Mike Isom
5fbb6dce16 Relax two-tiles-per-turn founding and merger limits
A two-tile turn may now merge and then found, found and then merge two
other chains, or merge twice. It still founds at most one chain, and the
second tile cannot cause a merger involving the chain founded this turn.

New two-tile games record twoTilesRelaxed in their options. Replay passes
the init log's recorded options to normalizeOptions, so games created
under the original limits keep them and replay exactly. The hand explains
the new limit with hand.mergeFounded in all 17 catalogs.
2026-11-04 06:56:52 -07:00
3d31fd48b8 Add configurable three, four or five share purchase limit 2026-10-29 21:17:50 +01:00
3e01897b08 Harden limited-log privacy and prepare optional variants release 2026-10-28 19:19:07 +01:00
Mike Isom
961fb7d0ca Write browser check screenshots to valid paths on Windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:55:27 -06:00
2c7b26a927 Add optional stock swaps before buying shares 2026-10-26 20:10:01 +01:00
95b5c9ba86 Show projected net worth and public-game scores 2026-10-24 22:57:43 +02:00
99b346a099 Outline safe chains with a double perimeter 2026-10-24 22:47:09 +02:00
67cd1e0ce4 Add merger sale and trade shortcuts with outcome totals 2026-10-23 21:08:43 +02:00
cfff677295 Make dead and temporarily blocked tiles easier to recognize 2026-10-23 19:38:43 +02:00
d60fbab2ee Show post-merger share prices before stock disposal 2026-10-23 11:15:46 +02:00
c69ec8252e Allow private turn undo without duplicate history or clock increments 2026-10-23 00:04:22 +02:00
384cac7036 Expand Acquire tutorials and add game sound design 2026-10-22 23:29:40 +02:00
22b4aded9a Place Acquire tiles with one board click 2026-10-22 23:10:33 +02:00
07f046374a Remove redundant color-blind controls from Acquire 2026-10-22 23:06:58 +02:00
daca2da620 Color player and chain names in Acquire history 2026-10-22 23:02:12 +02:00
73153fd0eb Fill Acquire viewer and show hand tiles on the board 2026-10-22 22:52:04 +02:00
b08dd3fbb9 Fix Acquire layout and explain tutorial mechanics 2026-10-22 22:27:14 +02:00
c80f1248dc Honor the initial dark theme in tutorial guides 2026-10-22 18:40:21 +02:00
89401e3ed5 Prepare Acquire private beta with localized tutorials and BGS integration fixes 2026-10-22 18:37:26 +02:00