From fcb160dff674f3d587dfd61a79ceffaeacb18ba1 Mon Sep 17 00:00:00 2001 From: Dong Yan Date: Mon, 25 Dec 2017 16:35:43 +0800 Subject: [PATCH] fix python 2,3 print format error --- AlphaGo/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AlphaGo/play.py b/AlphaGo/play.py index b3cc02a..e67621a 100644 --- a/AlphaGo/play.py +++ b/AlphaGo/play.py @@ -143,7 +143,7 @@ if __name__ == '__main__': prob = eval(prob) data.probs.append(prob) score = player[turn].run_cmd(str(num) + ' get_score') - print("Finished : ", score.split(" ")[1]) + print("Finished : {}".format(score.split(" ")[1])) # TODO: generalize the player if eval(score.split(" ")[1]) > 0: data.winner = 1