Game Play

class AlphaZero.game.gameplay.Game(nn_eval_1, nn_eval_2, game_config, ext_config)

A single game of two players.

Parameters:
  • nn_eval_1 – NNEvaluator instance. This class doesn’t create evaluator.
  • nn_eval_2 – NNEvaluator instance.
start()

Make the instance callable. Start playing.

Returns:Game winner. Definition is in go.py.
get_history()

Convert the format of game history for training.

Returns:game states, probability maps and game results
Return type:tuple of numpy arrays