From: Fabian Fichter Date: Sat, 5 Sep 2020 11:15:57 +0000 (+0200) Subject: Revert repetition handling for janggimodern X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=638a8af7909b9d1e84263308cfdcacafb563f052;p=fairystockfish.git Revert repetition handling for janggimodern For better compatibility with rules in Kakao Janggi, revert the repetition handling for janggimodern. This does not affect the other Janggi rulesets. --- diff --git a/src/variant.cpp b/src/variant.cpp index c31a524..fc6b40b 100644 --- a/src/variant.cpp +++ b/src/variant.cpp @@ -927,11 +927,12 @@ namespace { return v; } // Modern rules of Janggi, where bikjang is not considered, but material counting is. - // This is e.g. used on Kakao Janggi. + // The repetition rules are also adjusted for better compatibility with Kakao Janggi. Variant* janggi_modern_variant() { Variant* v = janggi_variant(); v->bikjangRule = false; v->materialCounting = JANGGI_MATERIAL; + v->nFoldValue = -VALUE_MATE; return v; } // Casual rules of Janggi, where bikjang and material counting are not considered