flipidip
This commit is contained in:
parent
3f6849048e
commit
c530aa688d
|
@ -297,9 +297,9 @@ class Network:
|
||||||
|
|
||||||
if n_init < 1: print("Unexpected argument n = {}".format(n_init)); exit()
|
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)
|
print(boards_with_scores)
|
||||||
scores = [ pair[1]
|
scores = [ ( pair[1] if player_init == 1 else (1 - pair[1]) )
|
||||||
for pair
|
for pair
|
||||||
in boards_with_scores ]
|
in boards_with_scores ]
|
||||||
best_score_pair = boards_with_scores[np.array(scores).argmax()]
|
best_score_pair = boards_with_scores[np.array(scores).argmax()]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user