1from pathlib
import Path
9def run(custom_output_root: Path =
None, **kwargs):
11 Creates xiangqi_bindings.PlayerSpec objects for each player,
and runs a
15 run_kwargs = {**command_line_kwargs, **kwargs}
17 output_file_info = get_output_file_info(run_kwargs)
18 game_runner = build_game_runner(run_kwargs)
20 core_game_summary = game_runner.run_game()
22 core_game_summary=core_game_summary
25 if output_file_info.save_summary:
27 game_summary=py_game_summary,
28 output_dir_suffix=output_file_info.output_dir_suffix,
29 custom_output_root=custom_output_root,
31 output_generator.generate_output()
34if __name__ ==
"__main__":
35 run(red_strength=2, black_strength=3)
Outputs GameSummary to .json file, and saves plots to a .png file.
def run(Path custom_output_root=None, **kwargs)
Creates xiangqi_bindings.PlayerSpec objects for each player, and runs a xiangqi_bindings....
Contains the GameOutputGenerator class.