Code Royale: Play Poker Against Claude Subagents to Learn Strategy
What It Does
Code Royale is a Claude Code skill that transforms your terminal into a No-Limit Texas Hold'em poker table. You play against three AI opponents—Alex, Jordan, and Sam—each running as a separate Claude subagent with its own isolated context and personality. The main Claude agent acts as dealer, manages game state, and optionally coaches you through hands.
Each opponent subagent can only see its own cards, creating genuine hidden information gameplay. The system maintains a full cash game setup with 4 players, 1000 starting chips, and 5/10 blinds.
Setup & Installation
Install with a single curl command:

curl -sL https://raw.githubusercontent.com/BohdanPetryshyn/code-royale/main/SKILL.md \
-o ~/.claude/skills/code-royale/SKILL.md --create-dirs
Then start Claude Code and say "let's play poker" or "deal me in."
Three Coaching Modes
The skill offers flexible learning options:
- No coaching – Pure gameplay against AI opponents
- Real-time hints + post-hand analysis – Get suggestions before each decision and analysis after each hand
- Post-hand analysis only – Learn from your mistakes without in-play interference
Gameplay Features
- ASCII table visualization updated before every decision
- Shorthand input:
f(fold),c(check/call),r 90(raise 90),allin - Mix of random and crafted hands designed to teach specific concepts like pot odds, position, kicker awareness, and when to fold
- Distinct opponent play styles you'll need to figure out over time
Model Recommendations
- Main agent (dealer/coach): Opus recommended for best coaching and game flow
- Main agent alternative: Sonnet also works well
- Opponent subagents: Always use Sonnet regardless of your main model
What to Expect
The creator notes: "Claude naturally takes every hand to the extreme. Expect more pocket aces and dramatic river cards than any real table would produce." This creates engaging, memorable hands perfect for learning key concepts through exaggerated scenarios.
Why This Matters for Developers
Beyond being fun, Code Royale demonstrates advanced Claude Code capabilities:
- Multi-agent coordination – Running multiple Claude instances with isolated contexts
- State management – Maintaining complex game state across interactions
- Interactive terminal applications – Building engaging CLI experiences with real-time updates
- Educational scaffolding – Progressive learning through different coaching modes
This skill shows what's possible when you combine Claude Code's subagent system with thoughtful game design—creating both an entertaining experience and a practical learning tool.


