From 76f641a0f1b0583ccd2bee2892f996be970152f9 Mon Sep 17 00:00:00 2001 From: rtz19970824 <1289226405@qq.com> Date: Mon, 25 Dec 2017 16:51:44 +0800 Subject: [PATCH] minor fixed --- AlphaGo/play.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/AlphaGo/play.py b/AlphaGo/play.py index c0bdc5b..6b57b86 100644 --- a/AlphaGo/play.py +++ b/AlphaGo/play.py @@ -92,7 +92,7 @@ if __name__ == '__main__': stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) agent_v1 = subprocess.Popen( - ['python', '-u', 'player.py', '--game=' + game_name, '--role=' + white_role_name, + ['python', '-u', 'player.py', '--game=' + args.game, '--role=' + white_role_name, '--checkpoint_path=' + str(args.white_weight_path), '--debug=' + str(args.debug)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) @@ -183,9 +183,6 @@ if __name__ == '__main__': except KeyboardInterrupt: pass - ns = Pyro4.locateNS() - ns.unregister(black_role_name) - ns.unregister(white_role_name) subprocess.call(["kill", "-9", str(agent_v0.pid)]) subprocess.call(["kill", "-9", str(agent_v1.pid)]) print("Kill all player, finish all game.")