ui-duel: document that browser bot matches are unrated (#79 review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 23:38:42 -05:00
co-authored by Claude Opus 5.5
parent ff6c93c808
commit 3e6d597aef
+2
View File
@@ -13,6 +13,8 @@ const BOT_STEP_MS = 300;
/**
* A bot match in the browser, for eligible players only (BRIEF decisions 2–3): the deck must be
* exactly `deckSize` cards the player owns. Off-chain; nothing moves or burns.
* Unrated by design: the whole DuelState (bot hand, library order) lives in the page, so `onFinish` never
* gets a match id and a browser-hosted result must never feed Elo or the ladder (night-review, #79).
*/
export function DuelBotMatch<S, R extends DuelRulesetLike>({ deck, cards, onExit, onFinish, engine, bot, botPool, rules, playerName = 'You', onMine }: {
deck: string[]; cards: BotMatchCard[]; onExit: () => void; onFinish: (matchId?: string) => void;