Commit graph

11 commits

Author SHA1 Message Date
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
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
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
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
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
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
Mike Isom
096f8cc54b Acquire for boardgamers.space
Rules engine and viewer implementing the BGS Engine and Viewer APIs,
with tests, a local test page, registration guide and admin-panel
content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 09:54:46 -06:00