From b9f83c26a148456b1b1dbe5dd7e0bf02bcfb2234 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sat, 8 Jun 2024 21:09:06 +0200 Subject: [PATCH] add training without debug --- tic_tac_toe.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)