Add stone scoring rules.

This commit is contained in:
Peter de Blanc committed 2021-01-04 22:16:29 +09:00
1 parent 01add18563
commit 450fcfde6b
17 files changed
+25 -1

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ class KataGoEngine:
"""Starts and communicates with the KataGO analysis engine"""
# TODO: we don't support suicide in game.py, so no "tt": "tromp-taylor", "nz": "new-zealand"
RULESETS_ABBR = [("jp", "japanese"), ("cn", "chinese"), ("ko", "korean"), ("aga", "aga")]
RULESETS_ABBR = [("jp", "japanese"), ("cn", "chinese"), ("ko", "korean"), ("aga", "aga"), ("stone_scoring", "stone_scoring")]
RULESETS = {fromkey: name for abbr, name in RULESETS_ABBR for fromkey in [abbr, name]}
@staticmethod