add training without debug

This commit is contained in:
2024-06-08 21:09:06 +02:00
parent 8cdb816409
commit b9f83c26a1
+4 -2
View File
@@ -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)