Implement AI Phase 3: MCTS engine, ELO tracking, self-play, calibration
- MCTS (UCT) decision engine for difficulty tiers 6-8 (MctsNode, MctsSimulator, MonteCarloEngine); tiers 6-8 updated from Heuristic → MCTS in AiDifficultyProfiles - AiEloService: separate ELO ledger for AI accounts (ai_elo_records table) so calibration games don't pollute the human RankScore leaderboard - FinalizeGameAsync / FinalizeMultiPlayerGameAsync: AI accounts are now guarded from RankScore and OriginPoints adjustments (IsAi check) - AiPlayerSessionManager: async GameEnded handler calls AiEloService - SelfPlayRunner: pure in-process AI vs AI game loop (no DB, no NATS) - SelfPlayOrchestrator: batch runner loading real decks from DB, parallel games - FeatureExtractor: GameState → float[1024] feature vector for ML training - GameReplayExporter: replays completed sessions → TrainingRecord JSONL - TrainingDataWriter: async JSONL writer - AiCalibrationJob: pairwise self-play calibration (D1vD2…D9vD10), writes AiCalibrationRun rows to GameDbContext - EF migration: ai_elo_records + ai_calibration_runs tables applied to remote DB - SOR.Admin: references SOR.Ai; new AI section in NavMenu with ELO Leaderboard and Calibration pages; SelfPlayOrchestrator + AiCalibrationJob registered Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -163,6 +163,23 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<NavLink class="nav-link text-white" href="/ai/elo" Match="NavLinkMatch.All">
|
||||
<i class="bi bi-robot me-2"></i>AI
|
||||
</NavLink>
|
||||
<ul class="nav nav-pills flex-column gap-1 ps-3 mt-1">
|
||||
<li class="nav-item">
|
||||
<NavLink class="nav-link text-white-50 py-1" href="/ai/elo">
|
||||
<i class="bi bi-trophy me-2"></i>ELO Leaderboard
|
||||
</NavLink>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<NavLink class="nav-link text-white-50 py-1" href="/ai/calibration">
|
||||
<i class="bi bi-sliders me-2"></i>Calibration
|
||||
</NavLink>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<NavLink class="nav-link text-white" href="/feature-flags">
|
||||
<i class="bi bi-toggles me-2"></i>Feature Flags
|
||||
|
||||
Reference in New Issue
Block a user