postprocess_light_game_stats

command
v0.3.0-beta.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

README

postprocess_light_game_stats

This tool transforms score differentials generated by dump_light_game_stats into win probabilities.

What It Does

  • Loads a score differential map generated by dump_light_game_stats
  • Computes score ratio distributions for each player in each round
  • Calculates relative score distributions between every pair of seat positions
  • Derives and outputs cumulative win probabilities for player-vs-player comparisons

Output

The tool writes the resulting win probabilities as JSON to standard output. You can redirect the output as needed for downstream processing.

The output is directly usable as configs/light_game_stats.json.

Usage

With the top-level directory of working tree of this repository as the current directory, run the following command:

go run ./tools/postprocess_light_game_stats <PATH/TO/score_stats.json> > <PATH/TO/light_game_stats.json>
  • score_stats.json must contain the raw output from dump_light_game_stats.
Sample Output (formatted)
{
  "winProbsMap": {
    "E1,0,1": {
      ...
      "-100": 0.4201448961937716,
      "-1000": 0.40051903114186843,
      ...
    },
    "E1,0,2": {
      ...
    },
    ...
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL