diff --git a/tic_tac_toe.py b/tic_tac_toe.py index 31ed24c..d24d0c4 100644 --- a/tic_tac_toe.py +++ b/tic_tac_toe.py @@ -237,8 +237,10 @@ def play(player_provider: PlayerProvider, k_max=10000, with_print=False): px = MachinePlayer(mark='X') po = MachinePlayer(mark='O') -players = PlayerProvider(px, po) -play(players, 10000, False) +do_training = 0 +if do_training: + players = PlayerProvider(px, po) + play(players, 10000, False) players = PlayerProvider(MachinePlayer(mark='X', with_debug=True, values=px.values), MachinePlayer(mark='O', with_debug=True, values=po.values)) play(players, 100, True)