From c530aa688dd0f5e765a7255ce57b088e82a0313c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Tue, 1 May 2018 13:48:42 +0200 Subject: [PATCH] flipidip --- network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network.py b/network.py index 65d7e9e..bc8d601 100644 --- a/network.py +++ b/network.py @@ -297,9 +297,9 @@ class Network: if n_init < 1: print("Unexpected argument n = {}".format(n_init)); exit() - boards_with_scores = ply(n_init, boards_init, player_init) + boards_with_scores = ply(n_init, boards_init, -1 * player_init) print(boards_with_scores) - scores = [ pair[1] + scores = [ ( pair[1] if player_init == 1 else (1 - pair[1]) ) for pair in boards_with_scores ] best_score_pair = boards_with_scores[np.array(scores).argmax()]