Rewrite core game logic to fix 10 critical bugs violating poker rules: - Add betMatched flag to separate chip tracking from bet-matching state - Implement last-aggressor tracking for proper betting round completion - Rewrite all action functions with validation enforcement - Add side pot support for multi-level all-in scenarios - Replace nested setTimeout AI turns with async promise chain - Add aiActing guard to prevent race conditions during AI play - Fix currentTurn advancement to always land on active players
PokeR
An interactive Poker game and learning tool built with SvelteKit and Svelte 5.
Features (Planned)
- Interactive poker gameplay with multiple bot types
- Educational guidance on poker mechanics and strategies:
- Pot odds calculation
- Player type analysis
- GTO (Game Theory Optimal) strategies
- Pre-flop ranges
- Betting techniques
Tech Stack
- Framework: SvelteKit with Svelte 5 (runes)
- Language: TypeScript
- Package Manager: npm
Getting Started
npm install
npm run dev
Development
This project uses OpenSpec for structured change management. See openspec/ for active and archived changes.
Description
Languages
TypeScript
63%
Svelte
36.2%
JavaScript
0.5%
HTML
0.2%
CSS
0.1%