Revert repetition handling for janggimodern
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 5 Sep 2020 11:15:57 +0000 (13:15 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 5 Sep 2020 11:15:57 +0000 (13:15 +0200)
For better compatibility with rules in Kakao Janggi,
revert the repetition handling for janggimodern.

This does not affect the other Janggi rulesets.

src/variant.cpp

index c31a524..fc6b40b 100644 (file)
@@ -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