Skip to content

Bot statistics#10

Open
juwei95 wants to merge 7 commits into
Game-Round-IIfrom
monte-carlo
Open

Bot statistics#10
juwei95 wants to merge 7 commits into
Game-Round-IIfrom
monte-carlo

Conversation

@juwei95

@juwei95 juwei95 commented May 23, 2026

Copy link
Copy Markdown
Collaborator

Synopsis

Simulates multiple games and computes and visualizes player statistics.
Useful for evaluation of bot features.

Usage

python3 monte_carlo.py [-h] [-n RUNS] [-r ROUNDS] [-c CHUNKSIZE] [-v VIZ]

Arguments

Opt Option Argument Type Default Description
-h --help Show this help message and exit
-n --runs RUNS int 10 Number of games to simulate
-r --rounds ROUNDS int 100 Number of rounds per game
-c --chunksize CHUNKSIZE int 16 Number of games to simulate in parallel
-v --viz VIZ str viz.png Visualization output filename

Demo output

All runs completed in 11.866 s.

Number of wins:      {'D3STROYER': 1}
Average gold at end: {'NonRandom': 238, 'SillyScout': 555, 'D3STROYER': 1425, 'Adlhart': 1362}
single_250
All runs completed in 78.203 s.

Number of wins:      {'Adlhart': 83, 'D3STROYER': 16, 'SillyScout': 1}
Average gold at end: {'NonRandom': 148, 'SillyScout': 252, 'D3STROYER': 495, 'Adlhart': 808}
100_100

@the-other-thanos

Copy link
Copy Markdown
Collaborator

nice, also pretty cool to be able to run games in parallel. We could also start making versions of our Bot run against itself to compare different tactics and ideas for the next round

@juwei95 juwei95 mentioned this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants