KataGo rules bug - and seeking help/sanity check
Posted: Tue Dec 29, 2020 9:43 pm
I discovered recently KataGo has a little bit of a rules bug. Japanese rules are hard to program.
https://lightvector.github.io/KataGo/rules.html
Ideally, white should be able to score all the territory here and count Black's stones as dead, *without* owing another move. Given the way that KataGo's postgame cleanup mechanically works, during the appropriate part of cleanup, White must hold this position stable *without* spending more net board plays than Black, as part of asserting their "claim" that they do not owe a move here, since being forced to play would fill and lose 1 point of territory. White needs to carry out this holding under so-called "pass-for-ko" rules, termed in KataGo's rules document as "unblocking" and "blocking" of ko recaptures, to disassociate it with actual passing. Here's how it plays out right now:
Next
spends a turn to unmark
from being ko-recapture-blocked. Now, white would like to spend a turn to unmark
from being ko-recapture-blocked. The issue is, technically at this moment B19 is not a ko-move. There is no ko mouth there at this moment, a White play there captures three stones, not one. However, White does NOT want to capture three stones. Doing so loses a point since White would end up making 2 board plays to Black's 1. White would much prefer to merely unmark without a board play yet, in preparation to be able to recapture what will be a ko mouth at B19 on the next turn after black recaptures at A17. With the current rule, since B19 is not a ko-move right now, White cannot unmark anything, so White will be forced to lose a point.
This quirk of the rules was definitely unintentional, and I'd like to fix it if possible. I think the following fix should work:
Old rule: An unblock-ko-recapture action consists of a player choosing a ko-move for that player that would capture a region containing a point marked as ko-recapture-blocked, and removing that mark.
New rule: An unblock-ko-recapture action consists of a player choosing a single-point region of the opposing color that is in atari and marked as ko-recapture-blocked, and removing that mark.
Can anyone sanity-check if they also think this modification works, and most importantly: can anyone think of any oddities or pathologies that would newly arise from this modification?
As from earlier discussions on this board, we already know that KataGo's rules don't exactly match Japanese practice in rare cases, and I'm okay with that, but I'd like for double-ko-death to not be one of those mismatches. Right now I am NOT particularly looking for side discussions on J89 or how ambiguous or complex Japanese rules may or may not be, or advice on whether some completely different ruleset formulation is called for... just any help and sanity checking for this one specific detail would be wonderful and greatly appreciated, because if it will work, I would like to put this rules patch into practice very soon for the now-recently-started training run.
https://lightvector.github.io/KataGo/rules.html
So here's the issue, with an example.An unblock-ko-recapture action consists of a player choosing a ko-move for that player that would capture a region containing a point marked as ko-recapture-blocked, and removing that mark.
Ideally, white should be able to score all the territory here and count Black's stones as dead, *without* owing another move. Given the way that KataGo's postgame cleanup mechanically works, during the appropriate part of cleanup, White must hold this position stable *without* spending more net board plays than Black, as part of asserting their "claim" that they do not owe a move here, since being forced to play would fill and lose 1 point of territory. White needs to carry out this holding under so-called "pass-for-ko" rules, termed in KataGo's rules document as "unblocking" and "blocking" of ko recaptures, to disassociate it with actual passing. Here's how it plays out right now:
Next
This quirk of the rules was definitely unintentional, and I'd like to fix it if possible. I think the following fix should work:
Old rule: An unblock-ko-recapture action consists of a player choosing a ko-move for that player that would capture a region containing a point marked as ko-recapture-blocked, and removing that mark.
New rule: An unblock-ko-recapture action consists of a player choosing a single-point region of the opposing color that is in atari and marked as ko-recapture-blocked, and removing that mark.
Can anyone sanity-check if they also think this modification works, and most importantly: can anyone think of any oddities or pathologies that would newly arise from this modification?
As from earlier discussions on this board, we already know that KataGo's rules don't exactly match Japanese practice in rare cases, and I'm okay with that, but I'd like for double-ko-death to not be one of those mismatches. Right now I am NOT particularly looking for side discussions on J89 or how ambiguous or complex Japanese rules may or may not be, or advice on whether some completely different ruleset formulation is called for... just any help and sanity checking for this one specific detail would be wonderful and greatly appreciated, because if it will work, I would like to put this rules patch into practice very soon for the now-recently-started training run.