From a974c96cb58fc5daeea447c297b29bbfef2ae7a3 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 15 May 2017 14:55:06 +0200 Subject: [PATCH] Score quasi-repeats somewhat less severe When there is a choice between a mate and a quasi-repeat, it is better to go for the latter. --- dropper.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dropper.c b/dropper.c index c80e510..71342af 100644 --- a/dropper.c +++ b/dropper.c @@ -1349,8 +1349,8 @@ if(PATH)printf("%d:%d:%d new iter moveStack[%d..%d]\n",ply,depth,iterDepth,m.fir } } - else if(gain == pawn || gain > (450<<21)) score = INF; // quasi-repeat with extra piece in hand - else if(gain == -pawn || gain < (-450<<21)) score = -INF; // or with one piece less + else if(gain == pawn || gain >= (400<<21)) score = INF-1; // quasi-repeat with extra piece in hand + else if(gain == -pawn || gain <= (-400<<21)) score = 1-INF; // or with one piece less else goto search;// traded one hand piece for another; could still lead somewhere } else { // not a repeat: search it int lmr; -- 1.7.0.4