Commit graph

54 commits

Author SHA1 Message Date
88e7baa059 Record Acquire BGS November deployment 2026-11-04 18:13:17 +00:00
9e9120ca6e Prepare Acquire engine and viewer November release 2026-11-04 18:11:04 +00:00
MikeIsom
06ac5e34fb
Merge pull request #2 from MikeIsom/main
Bug, UI, and Rule fixes galore.
2026-11-04 10:29:53 -07:00
MikeIsom
681bb84459
Merge pull request #2 from MikeIsom/playtest-feedback
Playtest feedback updates and fixes
2026-11-04 09:13:46 -07: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
Claude
637cae325a Tighten desktop spacing so a merger decision fits one screen
With the new disposal controls in the decision column, a merger at
1280x900 with touch-sized buttons ran 24px past the desktop gallery
limit. Narrow the desktop column and market gaps and the disposal
paragraph margins.
2026-11-04 07:39:48 -07:00
Claude
9d76acba21 Warn on the placement confirm when placing ends undo for the turn
A placement that crosses a commit boundary mid-turn, such as a second
tile whose merger pays bonuses, now shows the same note as the merger
confirmations.
2026-11-04 07:32:12 -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
2ddf04aa88 Merge holdings visibility levels and shared limited-log window
# Conflicts:
#	docs/admin/rules.md
#	packages/engine/src/options.spec.ts
#	packages/viewer/src/dev.ts
#	rules.md
2026-11-04 07:05:36 -07:00
Mike Isom
a32c085aed Show every viewer the same limited-log window
The limited log started at each player's own last turn, so how much
history you saw depended on your seat: right after your turn you saw
almost nothing. Everyone, spectators included, now sees the current
turn and the full round of turns before it (one turn per seat). This
matches the old window on your own turn and is never shorter.
2026-11-04 07:03:34 -07:00
Mike Isom
d8dd85060a Merge relaxed two-tile limits and hand size option 2026-11-04 07:03:19 -07:00
Mike Isom
33cd27df1b Add a hand size setup option independent of two tiles per turn
handSize offers 6 (default), 8, 10 or 12 tiles, with or without
twoTiles. Normalized options omit it at the legacy size (6, or 8 with
twoTiles), so games created without it keep their init log and replay
exactly; unknown values are ignored and logged.

Setup, refills, dead-tile replacement and public positions all use the
chosen size. The rack picks columns per hand size with container
queries: one row where it fits, otherwise two even rows, and three rows
of four for 12 tiles on the narrowest phones.
2026-11-04 07:02:46 -07:00
Mike Isom
72e9998165 Merge desktop layout and hand-adjacent placement confirm 2026-11-04 07:01:36 -07:00
Mike Isom
defff1ab97 Add holdings visibility levels for cash and total share count
Replace the public holdings checkbox with a holdingsVisibility select:
private, cash, cashAndShareCount or public. publicHoldings: true keeps
meaning full public, and normalized options store holdingsVisibility
only at the two new levels, so historical init logs are unchanged.

stripSecret shows opponents' exact cash from the cash level and adds a
total shareCount at the share-count level while per-chain holdings stay
hidden. Net worth and scores still need fully public holdings. The buy
step may skip for lack of cash whenever cash is public.
2026-11-04 06:59:53 -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
Claude
2cfb5332f6 Repeat tile placement confirmation under the hand on phones
On narrow layouts the decision panel sits above the board, so confirming a
tile chosen in the rack meant scrolling back up past the board. Extract the
place confirmation into PlaceConfirm, used by the action panel and, below
700px, directly under the rack, where it scrolls into view when it opens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 06:54:05 -07:00
5f5aee5ac0 Remove obsolete sidebar chat hiding metadata 2026-10-31 18:38:04 +01: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
MikeIsom
16277e7ae7
Merge pull request #1 from MikeIsom/new-options
Adds two optional setup option checkboxes, both off by default
2026-10-28 08:00:22 -06:00
MikeIsom
2478347088
Update docs/admin/gameinfo.json
Co-authored-by: Eliott C. <coyotte508@protonmail.com>
2026-10-28 07:58:38 -06:00
MikeIsom
88e569e364
Update docs/admin/gameinfo.json
Co-authored-by: Eliott C. <coyotte508@protonmail.com>
2026-10-28 07:58:25 -06:00
MikeIsom
1a50e9c2c7
Merge pull request #1 from MikeIsom/new-options
Adds two optional setup option checkboxes, both off by default

Two tiles per turn (twoTiles): hands of 8 tiles and two placements per turn. Rules are in rules.md §4.1.

Limited game log (limitedLog): each player’s log shows only what has happened since their last turn, until the game ends. The engine enforces it, and replay is off until the game ends. Rules are in rules.md §13.
2026-10-27 17:10:04 -06: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
Mike Isom
62e3c99a65 Add an optional limited game log
With limitedLog on, each player's view and log slices replace entries from
before the start of their last turn with placeholders, keeping the log's
length. The current turn, including a merger in progress, is always visible,
spectators see what the active player sees, and the full log is revealed at
game end. The viewer shows one note for each withheld run and holds replay at
the live position until the game ends (rules.md §13).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:46:18 -06:00
Mike Isom
1fde9ed37c Add an optional two-tiles-per-turn variant
With twoTiles on, hands hold 8 tiles and each turn places two, each fully
resolved (mergers and bank tiles included) before the next. A turn founds at
most one chain and never both founds and merges; dead tiles are replaced at
the start of the turn. Buying, announcing and auto-play follow rules.md §4.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:33:50 -06:00
2b5b2fd9dc Document setup options and player configuration 2026-10-27 22:11:10 +01:00
124936d460 Document Acquire publishing and agent workflow 2026-10-27 21:44:27 +01: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
9c7f7dabaf Clarify merger and final bonuses in Acquire tutorials 2026-10-22 23:15:58 +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
8f2da86cb6 Tag Acquire with tile placement and stock holding 2026-10-22 22:41:00 +02:00
baab589f3f Credit not2cool for the digital implementation 2026-10-22 22:32:41 +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
42f0fbf822 Give the BGS rules page its required title 2026-10-22 18:38:27 +02:00