I'll build a comprehensive GTO pre-flop trainer for Texas Hold'em. Let me start by creating the core data structures and range encoding.
The build succeeds. Let me enhance the ranges with realistic mixed strategies, which is a key part of GTO that the trainer should teach.
Let me add keyboard shortcuts for faster practice and a couple more polish touches.
Let me verify the final state and check for any issues.
Build is clean — those error matches are just references to the Error class in the minified React bundle. The app is ready.
Summary
I built a GTO Pre-flop Trainer for Texas Hold'em — a complete, user-friendly web app for daily practice. Here's what's included:
🎯 Practice Mode (core feature)
- Random scenarios from 9 different GTO spots (UTG/MP/CO/BTN/SB opens + BB vs BTN, BB vs CO, BTN vs CO, SB vs BTN defense)
- Realistic mixed strategies — many hands have fractional frequencies (e.g., "70% 3-bet, 30% fold")
- Weighted hand distribution — random hands are weighted by combo count (pairs=6, suited=4, offsuit=12) to match real deal frequencies
- Instant 3-tier feedback: ✅ Perfect / 🟢 Acceptable / ❌ Incorrect
- GTO breakdown bars after each answer showing exact action frequencies
- Keyboard shortcuts:
F=Fold, C=Call, R=Raise, A=All-in, Space=Next
- Live streak/accuracy tracking
📊 Charts Browser
- Interactive 13×13 hand grid (pairs on diagonal, suited upper-right, offsuit lower-left)
- Color-coded cells by dominant action (red=raise, green=call, amber=all-in, gray=fold)
- Click any hand to see its exact GTO frequencies
📈 Stats Dashboard
- Overall accuracy, hands reviewed, current streak, best streak
- Per-spot accuracy bars so users can spot weaknesses
- Session timer
- Reset functionality with confirmation
- Persistent across sessions via LocalStorage
🎨 Polish
- Dark poker-themed UI with gradient backgrounds
- Responsive layout (mobile-friendly)
- Playing card visualizations
- Animated feedback
- Custom scrollbar
- Keyboard hints visible in UI
Files created
src/App.tsx — Main shell with tab navigation
src/components/PracticeMode.tsx — Core trainer
src/components/ChartViewer.tsx — Range explorer
src/components/StatsView.tsx — Progress dashboard
src/components/HandGrid.tsx — Reusable 13×13 grid
src/data/ranges.ts — 9 hand-coded GTO ranges with mixed strategies
src/data/spots.ts — Spot definitions
src/lib/hands.ts — Hand utilities
src/lib/storage.ts — Stats persistence
src/index.css — Animations
Final bundle: 260KB (74KB gzipped) — everything inlines into a single dist/index.html.
Files built: src/lib/hands.ts, src/data/ranges.ts, src/data/spots.ts, src/components/HandGrid.tsx, src/components/PracticeMode.tsx, src/lib/storage.ts, src/components/ChartViewer.tsx, src/components/StatsView.tsx, src/App.tsx, src/index.css, index.html