← スキル一覧に戻る

god-mode-engine
by Smarter-Poker
Smarter-Poker-World-Hub
⭐ 0🍴 0📅 2026年1月26日
SKILL.md
name: God Mode Engine description: Build and manage the 100-game poker training RPG with 3-engine architecture (PIO, CHART, SCENARIO)
God Mode Engine Skill
Complete implementation of the Smarter.Poker "God Mode" training system.
Quick Reference
| Component | File | Lines |
|---|---|---|
| Database Schema | database/migrations/god_mode_engine.sql | 322 |
| Game Seeder | scripts/seed_games.py | 450 |
| Engine Core | src/engine/engine_core.py | 733 |
| GameSession | src/components/training/GameSession.tsx | 900+ |
| LevelSelector | src/components/training/LevelSelector.tsx | 400+ |
| ChartGrid | src/components/training/ChartGrid.tsx | 500+ |
| MentalGym | src/components/training/MentalGym.tsx | 400+ |
| GameArena | src/components/training/GameArena.tsx | 850+ |
| RoundSummary | src/components/training/RoundSummary.tsx | 500+ |
| Card | src/components/training/Card.tsx | 280+ |
| Chip | src/components/training/Chip.tsx | 230+ |
| API Server | server.py | 500+ |
| GameCard | src/components/training/GameCard.jsx | 295 |
| Training Page | pages/hub/training.js | 1108 |
| Play Page | pages/hub/training/play/[gameId].js | 100+ |
| Arena Page | pages/hub/training/arena/[gameId].js | 150+ |
Architecture
GameSession.tsx
│ REST
┌─────▼─────┐
│ server.py │ FastAPI
└─────┬─────┘
│
┌─────▼─────┐
│engine_core│ GameEngine
└─────┬─────┘
┌─────┼─────┐
PIO CHART SCENARIO
(60) (19) (21)
Component Flow
/hub/training
│
▼
GameCard (click)
│
▼
/hub/training/play/[gameId] ──► LevelSelector
│
▼ (select level)
/hub/training/arena/[gameId] ──► GameArena
│ │
│ ┌─────────┼─────────┐
│ ▼ ▼ ▼
│ PokerTable ChartGrid MentalGym
│ (PIO) (CHART) (SCENARIO)
│
▼ (session complete)
RoundSummary ──► Victory/Defeat screen
Run Commands
# API Server
uvicorn server:app --reload --port 8000
# Frontend
npm run dev
# Seed games
python3 scripts/seed_games.py --stats
# Setup dummy data
python3 scripts/setup_dummy_data.py
Implementation Steps
Step 1-6: Core Engine (Completed)
- Database schema
- Game seeder (100 games)
- Engine core backend
- Frontend GameSession component
- FastAPI server
- Training Hub enhancements
Step 7: Level Select Screen
-
LevelSelector.tsx- 10-level progression display - Visual indicators: locked/unlocked/current/passed
- Difficulty curve display (85%-100% passing grades)
- XP rewards preview
Step 8: Engine Components
-
ChartGrid.tsx- 13x13 push/fold chart- Interactive cell selection
- Color-coded actions (PUSH=green, FOLD=red, 3BET=blue)
- Position and stack depth display
- Visual feedback for correct/wrong answers
-
MentalGym.tsx- Mental game scenarios- Large scenario text display
- Countdown timer with pressure
- Emotional type badges
- Timed decision making
Step 9: Game HUD (GameArena)
-
GameArena.tsx- Full game session wrapper - Health bar with heart icons
- Hand counter (hand X of 20)
- XP display with streak bonus
- Conditional engine rendering
- Demo mode for testing without API
Step 10: Victory/Defeat Screen
-
RoundSummary.tsx- Session completion screen - Phased reveal animation (SCORE → XP → BLUNDERS → ACTIONS)
- Confetti celebration on pass
- Animated score counter
- Top 3 blunders review
- Next level / Retry / Exit buttons
Step 11: Navigation Wiring
-
/hub/training/play/[gameId].js→ LevelSelector -
/hub/training/arena/[gameId].js→ GameArena - Session params via URL (level, session)
Step 12: Graphics Engine
-
Card.tsx- Playing card component- SVG suit symbols
- Color coding (red/black)
- Sizes: small, medium, large
- Flip/deal animations
- CardGroup for hand display
-
Chip.tsx- Poker chip component- Denomination colors (1=white, 5=red, 25=green, 100=black, 500=purple, 1000=gold)
- ChipStack for stacking effect
- PotDisplay for pot visualization
Step 13: Mock Data
-
scripts/setup_dummy_data.py- Data setup script -
/data/charts/push_fold_ranges.json- Push/fold charts -
/data/charts/3bet_ranges.json- 3-bet/call ranges -
/data/charts/icm_bubble_ranges.json- ICM bubble charts -
/data/scenarios/mental_game.json- Mental game scenarios - Validation system for data files
Data Files
| File | Engine | Count |
|---|---|---|
push_fold_ranges.json | CHART | 5 charts |
3bet_ranges.json | CHART | 2 charts |
icm_bubble_ranges.json | CHART | 3 charts |
mental_game.json | SCENARIO | 10 scenarios (5 categories) |
sample_hands.json | PIO | 20 demo hands |
Component Props
ChartGrid
interface ChartGridProps {
chartType: 'PUSH_FOLD' | '3BET_CALL' | 'ICM_BUBBLE';
heroPosition: string;
stackBB: number;
phase: 'DISPLAY' | 'SELECT' | 'RESULT';
selectedCell?: string;
correctCell?: string;
resultFeedback?: 'CORRECT' | 'WRONG';
onAction: (action: string) => void;
}
MentalGym
interface MentalGymProps {
scenario: {
title: string;
context: string;
prompt: string;
options: Array<{
id: string;
text: string;
type: 'rational' | 'impulsive' | 'passive' | 'aggressive';
correct: boolean;
feedback: string;
}>;
timeout_seconds: number;
};
onAnswer: (optionId: string, timedOut: boolean) => void;
timeRemaining?: number;
}
GameArena
interface GameArenaProps {
gameId: string;
level: number;
sessionId: string;
engineType: 'PIO' | 'CHART' | 'SCENARIO';
onSessionComplete: (result: SessionResult) => void;
onExit: () => void;
}
RoundSummary
interface RoundSummaryProps {
result: {
passed: boolean;
score: number;
totalHands: number;
correctHands: number;
xpEarned: number;
streakBonus: number;
blunders: Array<{
hand: number;
heroCards: string[];
board: string[];
yourAction: string;
correctAction: string;
evLoss: number;
}>;
};
level: number;
gameName: string;
onNextLevel: () => void;
onRetry: () => void;
onExit: () => void;
}
Deployment Checklist
- Database schema
- Game seeder (100 games)
- Engine core backend
- Frontend component
- FastAPI server
- Training Hub enhancements
- Level Select screen
- Engine components (ChartGrid, MentalGym)
- Game HUD (GameArena)
- Victory/Defeat screen (RoundSummary)
- Navigation wiring
- Graphics engine (Card, Chip)
- Mock data setup
- Production deploy
Skill Files
| File | Purpose |
|---|---|
SKILL.md | Main guide (this file) |
ENGINE_CORE_REFERENCE.md | Python backend |
GAMESESSION_REFERENCE.md | React frontend |
SERVER_REFERENCE.md | FastAPI endpoints |
SEEDER_REFERENCE.md | Game seeding |
TRAINING_HUB_REFERENCE.md | Training Hub UI |
DATABASE_DEPLOYMENT.md | Browser automation |
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です