[ui-duel] Duel board, MTG card faces, combat declaration, DuelBoard/DuelBotMatch mount points (#58) #79

Merged
claude merged 13 commits from night2/ui-duel/board into night/2026-11-17 2026-11-18 16:14:13 +00:00
13 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 3e6d597aef ui-duel: document that browser bot matches are unrated (#79 review)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 23:38:42 -05:00
claudeandClaude Opus 5.5 ff6c93c808 ui-duel: QA fixes from night-review (#58): hand overflow cue (+N, edge fade), Garrison 0/T in preview, taller cards and 3-line titles on tall phones, larger Doctrine badge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 23:10:06 -05:00
claudeandClaude Opus 5.5 0f924b7732 ui-duel: even battlefield slots with few cards; keyword icons on two-keyword hand cards; game-over note wraps (#58)
Found by rendering duel-core's engine-wip mid-game locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:56:40 -05:00
claudeandClaude Opus 5.5 848cfbbaf1 ui-duel: view-only fallback duel bots (Easy, Normal) for the browser bot match (#58)
Checked locally against duel-core's engine-wip: 40 full games through the board
pipeline (adapter, declaration reducers, expand) with every sent action legal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:55:08 -05:00
claudeandClaude Opus 5.5 9c26b8d560 ui-duel: mirror the used slice of duel-core's contract (#72) locally so this PR doesn't stack (#58)
contract.ts copies the unions and fields verbatim; a compile check confirmed
duel-core's PlayerView, DuelAction (both ways), LogEvent, DuelEngineApi and
DuelRuleset are assignable to it. It becomes re-exports once #72 merges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:49:19 -05:00
claudeandClaude Opus 5.5 a57698a7e2 ui-duel: accept untyped duel profiles from the collection and shape-check them (#58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:17:44 -05:00
claudeandClaude Opus 5.5 75ce8f5ba5 ui-duel: DuelBotMatch (eligible players only, bot sees viewFor only) (#58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:56:22 -05:00
claudeandClaude Opus 5.5 a7e46583fb ui-duel: DuelBotMatch (eligible players only, bot sees viewFor only) (#58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:56:01 -05:00
claudeandClaude Opus 5.5 4160086d16 ui-duel: duel-core adapter and DuelBoard (PlayerView + DuelAction[]) for ui-pvp (#58)
Board intents expand to duel-core's atomic actions (toggleAttacker x N,
confirmAttack; block x N, confirmBlocks), sent in order and awaited.
Fallback log uses the first DUEL_DESIGN 8.2 variant until the story
renderer reads engine events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:54:04 -05:00
claudeandClaude Opus 5.5 0fcf0b0a73 ui-duel: follow duel-core contract phases; multi-step targets incl. players (#58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:51:55 -05:00
claudeandClaude Opus 5.5 0666b08829 ui-duel: engine-agnostic local match driver; Connected icon; game-over uses the engine's log line (#58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:47:59 -05:00
claudeandClaude Opus 5.5 2fe16a66c8 ui-duel: eligibility gate, DuelCard to board card mapping, zoom face fixes (#58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:46:26 -05:00
claudeandClaude Opus 5.5 5a7cfba124 ui-duel: duel table, MTG card faces, combat declaration and preview scenes (#58)
Presentational board on its own view model (src/game/duel/model.ts), 360 x 740 first:
both players' Notability, Citations, library and hand always visible; attack in one
tap, block in two, preview then confirm; tap-to-zoom card sheet with rules text,
flavour and an [n] article link; log ticker on phones, log column on desktop.
#duel-preview renders static scenes from card-sample.json for review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:44:33 -05:00