Computer difficulty levels and hidden strategies #31

Merged
devadmin merged 2 commits from feature/ai-difficulty into dev 2026-11-07 23:26:08 -06:00
Owner

Adds a per-game computer difficulty setting (Easy / Medium / Hard / Mixed) and hidden per-seat strategies for every game with computer opponents. Medium plays as each AI did before. Local testDebugUnitTest, lintDebug and assembleDebug pass.

Not measured: Hard/Easy strength against Medium, and Hard move times on a phone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TWwLCrXa9aFVg8dZsCdLBZ

Adds a per-game computer difficulty setting (Easy / Medium / Hard / Mixed) and hidden per-seat strategies for every game with computer opponents. Medium plays as each AI did before. Local testDebugUnitTest, lintDebug and assembleDebug pass. Not measured: Hard/Easy strength against Medium, and Hard move times on a phone. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01TWwLCrXa9aFVg8dZsCdLBZ
devadmin added 2 commits 2026-11-07 23:14:50 -06:00
Every game with computer opponents gains a setup choice (Easy, Medium, Hard,
Mixed), carried in TableConfig.aiDifficulty and through the host lobby. Each
computer seat gets a level and a hidden style (balanced, aggressive, cautious,
spoiler) derived from the table seed, so saves and hosted tables reproduce it.
Medium plays exactly as each AI did before. Easy plays weaker and slips
plausibly; Hard searches deeper or counts cards, never using hidden
information. Covers Chess, Checkers, Morris, Backgammon, Pirates, Katan (base,
Cities & Knights, Seafarers), Euchre, Kaiser, Wizard, Hearts, President, Crazy
Eights, Golf, Cribbage, Sequence, Tayu and Yahtzee.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TWwLCrXa9aFVg8dZsCdLBZ
Merge remote-tracking branch 'origin/dev' into feature/ai-difficulty
CI / Deploy to Cloudflare Pages (pull_request) Skipped
CI / Build and check (pull_request) Successful in 11m1s
961ac96689
devadmin merged commit a30b1dfcd0 into dev 2026-11-07 23:26:08 -06:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: devadmin/ProLibertateGames#31