From 6926e4e389147249f23f054a243ea833cb8d15cb Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 22 Feb 2017 20:53:32 +0100 Subject: [PATCH] Do not accept engine 50-move claims in Makruk Normally draw claims are always accepted after 100 reversible ply, even when -ruleMoves is set different from 50. In Makruk this would allow engines to cheat, as there is in general no 50-move limitation there. Now the claims are considered false (but adjudication can still be configured). --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 6d29691..6a61115 100644 --- a/backend.c +++ b/backend.c @@ -8641,7 +8641,7 @@ Adjudicate (ChessProgramState *cps) i++; } } - if( count >= 100) + if( count >= 100 && gameInfo.variant != VariantMakruk) // do not accept 50-move claims in Makruk boards[forwardMostMove][EP_STATUS] = EP_RULE_DRAW; /* this is used to judge if draw claims are legal */ if(canAdjudicate && appData.ruleMoves > 0 && count >= 2*appData.ruleMoves) { -- 1.7.0.4