[ui-b] AI opponent: easy and normal browser bots #31

Merged
claude merged 1 commits from night/ui-b/bots into night/2026-11-16 2026-11-17 05:55:17 +00:00
1 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 0893ded504 Browser bots: easy and normal opponents in the Play lobby
Issue #5. src/game/ai exports BOTS (easy, normal) in ui-a's Bot shape, and
src/game/bots.ts now offers them in the lobby (randomBot stays exported as
the fallback). The bots read only the MatchView (no hidden information) and
never concede or un-queue. makeUiBot(level, engineChoice) is the hook for an
engine-level bot that gets only viewFor output (night-lead's rule).
Real engine via ui-a's adapter, 100 matches each, starter vs opponent
decks, alternating seats: normal beats random 84%, easy beats random 76%,
normal beats easy 77.5%.

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