add training without debug
This commit is contained in:
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user