When there is a choice between a mate and a quasi-repeat, it is better
to go for the latter.
}
}
- 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;