]> git.sesse.net Git - stockfish/commitdiff
Retire redundant endgames
authorMarco Costalba <mcostalba@gmail.com>
Thu, 22 Aug 2013 11:02:20 +0000 (13:02 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 22 Aug 2013 11:13:06 +0000 (13:13 +0200)
The case of two lone kings on the board is already considered
by the "No pawns" scaling factor rules in material.cpp as is
KBK and KNK.

Moreover we had a small leak in endgames map because for
KK endgame it happens white and black material keys are the
same (both equal to zero), so when adding the black endgame in
Endgames::add() we were overwriting the already exsisting
white one, leading to a memory leak found by Valgrind.

So remove the endgames althogheter and rely on scaling
to correctly set the endgames value to a draw.

No functional change.


No differences found