Veit F. a07117efaf fix: implement correct Texas Hold'em betting rules and game flow
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
2026-05-17 18:46:08 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00
2026-05-17 14:31:48 +02:00

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
No description provided
Readme 272 KiB
Languages
TypeScript 63%
Svelte 36.2%
JavaScript 0.5%
HTML 0.2%
CSS 0.1%