From 64da200e5d4d4cff8c1642f4def897cefadbb87d Mon Sep 17 00:00:00 2001 From: Dong Yan Date: Mon, 25 Dec 2017 16:26:51 +0800 Subject: [PATCH] move , from inside of () to outside of () --- AlphaGo/play.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AlphaGo/play.py b/AlphaGo/play.py index 4e4aa6f..b3cc02a 100644 --- a/AlphaGo/play.py +++ b/AlphaGo/play.py @@ -75,7 +75,7 @@ if __name__ == '__main__': agent_v1 = subprocess.Popen( ['python', '-u', 'player.py', '--game=' + game_name, '--role=' + white_role_name, - '--checkpoint_path=' + str(args.black_weight_path), '--debug=' + str(args.debug)], + '--checkpoint_path=' + str(args.white_weight_path), '--debug=' + str(args.debug)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) server_list = "" @@ -119,12 +119,12 @@ if __name__ == '__main__': board = eval(board[board.index('['):board.index(']') + 1]) for i in range(size[game_name]): for j in range(size[game_name]): - print(show[board[i * size[game_name] + j]] + " ",) - print("\n",) + print(show[board[i * size[game_name] + j]] + " "), + print("\n"), data.boards.append(board) start_time = time.time() move = player[turn].run_cmd(str(num) + ' genmove ' + color[turn] + '\n') - print(role[turn] + " : " + str(move),) + print(role[turn] + " : " + str(move)), num += 1 match = re.search(pattern, move) if match is not None: