The hlt_client has a compare_bots.py file that you can use to see how to determine the winner. If you run the halite client with —results-as-json
Use
def _determine_winner(results):
“”"
From the game result string, extract the winner’s id.
:param game_result: The result of running a game on the Halite binary
:return:
“”"
for player_id, stats in results[“stats”].items():
if stats[“rank”] == 1:
return player_id
I also store the bot cmd so I can link the id to a cmd then switch what id the bots are and still track wins by cmd used.