Skip to content

Commit

Permalink
Merge pull request kobanium#88 from CGLemon/remove-ws
Browse files Browse the repository at this point in the history
Remove unused white space.
  • Loading branch information
kobanium authored Jan 1, 2024
2 parents 4e91913 + 938f776 commit c0b53c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mcts/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down Expand Up @@ -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

0 comments on commit c0b53c9

Please sign in to comment.