q5Go
q5Go copied to clipboard
Add "unspecified" option for analysis rules
hi,
currenlty the only options for analysis rules are japanese, chinese or "guess from sgf" (analysis menu -> ruleset)
the "guess from sgf" seems to default to tromp taylor rules in the absence of any other information, overriding katago's rule definition from its config file.
this is a problem if you want to use non-standard rulesets for katago, like stone scoring, which is area scoring + group tax, and currently impossible to use in analysis in qgo as far as I can determine.
so it would be cool if an option like "unspecified" for the ruleset could be added which does not override the ruleset specified in katago's config, or alternatively, if the "guess from sgf" would simply not set any rules at all in the absence of any information. (tromp taylor is seemingly used on blank sgfs)
greetings
Hmm, I started looking into this, but the problem is: I can't find a command to switch back to KataGo's default. So if you ever have the bot analyze with a specific ruleset you then can't go back. That's kind of a user-interface problem because the sensible default is "best guess". Not sure yet how best to address this.
can't find a command to switch back to KataGo's default
my katago (v1.9.1) supports the gtp commands "kata-get-rules" and "kata-set-rules", which either take or print out katago's ruleset in json format, documented here
so at startup you could save the json for the default rules specified in katago's config so that you can later revert to it. I'm not sure if those gtp commands are standard in all katago versions, but since you seem to be using "kata-set-rules" anyway, my guess is all katago versions that support that command also support "kata-get-rules"
if this doesnt work, a hack to reset the rules to the default would be to simply restart katago altogether.
Sorry it took so long. Please reopen if not fully fixed.
Had to revert the change unfortunately because of issue #73.