minor fixed

This commit is contained in:
rtz19970824 2017-12-08 18:59:20 +08:00
parent 8bedac5978
commit 453e457452

View File

@ -43,6 +43,7 @@ game_num = 0
black_pass = False black_pass = False
white_pass = False white_pass = False
while True: while True:
print("Start game {}".format(game_num))
while not (black_pass and white_pass) and num < game.size ** 2 * 2: while not (black_pass and white_pass) and num < game.size ** 2 * 2:
if num % 2 == 0: if num % 2 == 0:
color = utils.BLACK color = utils.BLACK
@ -77,6 +78,7 @@ while True:
game.show_board() game.show_board()
prob.append(np.array(game.prob).reshape(-1, game.size ** 2 + 1)) prob.append(np.array(game.prob).reshape(-1, game.size ** 2 + 1))
print("Finished") print("Finished")
print("\n")
score = game.executor.get_score() score = game.executor.get_score()
if score > 0: if score > 0:
winner = utils.BLACK winner = utils.BLACK
@ -98,5 +100,4 @@ while True:
history.clear() history.clear()
for _ in range(8): for _ in range(8):
history.append(game.board) history.append(game.board)
game.show_board()
game_num += 1 game_num += 1