Draft
Add headless AI tournament mode for statistical benchmarking#7
Conversation
Co-authored-by: chrisraff <22504698+chrisraff@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add system for AI matchups to analyze performance
Add headless AI tournament mode for statistical benchmarking
Mar 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No built-in way to compare AI strategies across many games — only real-time play was possible, making it impractical to measure win-rate edges.
Changes
tournament.js(new): Headless game simulation engine + HTML overlay UIAI_REGISTRYauto-detects all loaded AI functions at page load — new AIs are picked up automaticallysetTimeoutbatching to keep the browser responsiveindex.html: Tournament overlay div + CSS,tournament.jsscript tag, "Tournament / Benchmark" link below canvasmain.js: TOURNAMENT button added to title screen (button index 8)UI
Configuration panel — player count (2–7), games (1–10,000), AI assignment per slot:
Results after 100 games (default 7-player config):
ai_defensiveshows a clear edge (~50%+ win rate) vs.ai_default(~28%) andai_example(~19%) in the default 7-player setup.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.