From 938f7762d1bbf847656032682d79193b708a672b Mon Sep 17 00:00:00 2001 From: CGLemon Date: Sun, 31 Dec 2023 22:12:14 +0800 Subject: [PATCH] Remove unused white space. --- mcts/node.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mcts/node.py b/mcts/node.py index 7109240..5b67276 100644 --- a/mcts/node.py +++ b/mcts/node.py @@ -391,7 +391,7 @@ def get_analysis(self, board: GoBoard, mode: str, \ prior = self.children_policy[i] pv_list = pv_lists[coordinate.convert_to_gtp_format(pos)] - pv_str = "".join([f"{p} " for p in pv_list]) + pv_str = " ".join([f"{p}" for p in pv_list]) children_status_list.append( { @@ -423,11 +423,13 @@ def get_analysis(self, board: GoBoard, mode: str, \ out += f"lcb {int(10000 * status['lcb'])} " out += f"order {status['order']} " out += f"pv {status['pv']}" + out += " " elif mode == "cgos": cgos_dict["moves"].append(status) if mode == "cgos": out = json.dumps(cgos_dict, indent=None, separators=(',', ':')) - + else: + out = out[:-1] out += '\n' return out