From: Marco Costalba Date: Fri, 14 Mar 2014 08:57:34 +0000 (+0100) Subject: Use legal positions for endgame initialization X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d0587f2c7f31ea30885007beca76e832b8713501;hp=d0587f2c7f31ea30885007beca76e832b8713501 Use legal positions for endgame initialization During endgame initialization we get the material hash key of each endgame forging and ad-hoc position that in same cases is illegal (leaves teh king under capture). This is not a problem for the material key, but rises an assert when SF is run in debug mode with 'testKingCapture' set in pos_is_ok(). So rewrite the code to always produce legal positions. No functional change. ---