lightvector / KataGo

GTP engine and self-play learning in Go
https://katagotraining.org/
Other
3.47k stars 563 forks source link

Katago makes suicide move? #554

Open hwj-111 opened 2 years ago

hwj-111 commented 2 years ago

I set my katago with taylor-tromp rule and played on cgos, it was fine for quite long time until recently.

There are some CrazyStone bots with a play style to put stones until there is no way to continue ... during that period, katago put suicide move in couple of games like below and lost the games due to illegal moves

http://www.yss-aya.com/cgos/viewer.cgi?19x19/SGF/2021/09/27/779150.sgf http://www.yss-aya.com/cgos/viewer.cgi?19x19/SGF/2021/09/24/778806.sgf

Could this be a bug?

lightvector commented 2 years ago

Suicide is legal in tromp-taylor rules, so no this is not a bug. You should set the rules to be whatever the correct rules are.

hwj-111 commented 2 years ago

Oh, it is a cgos bug then

lightvector commented 2 years ago

Hehe, it's probably not a cgos bug. I bet they don't use tromp-taylor rules.

lightvector commented 2 years ago

Yep, here: http://www.yss-aya.com/cgos/ see CGOS Rules of Play. The server explicitly states that it "very similar to the Tromp/Taylor rules (sometimes referred to as "The Logical Rules") but prohibit suicide" (bold mine). So just configure the individual rules options for KataGo in the config to match and you should be good to go.

hwj-111 commented 2 years ago

I see ... my fault

lightvector commented 2 years ago

Eh, pretty minor. Self-capture definitely doesn't come up very much in normal games. I guess KataGo could try to clean up more efficiently too. :)

michito744 commented 2 years ago

It seems that the suicide move will be effective only in the situation where the ko occurs.

example:-) 2021-09-27 (2)