From 638a8af7909b9d1e84263308cfdcacafb563f052 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 5 Sep 2020 13:15:57 +0200 Subject: [PATCH] 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. --- src/variant.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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 -- 1.7.0.4