]> git.sesse.net Git - stockfish/commitdiff
Simplify KBNK endgame implementation
authorprotonspring <mike@whiteley.org>
Sat, 8 Dec 2018 17:08:59 +0000 (10:08 -0700)
committerStéphane Nicolet <cassio@free.fr>
Thu, 20 Dec 2018 09:47:18 +0000 (10:47 +0100)
We do not need to change the winnerKSq variable, so we can simplify
a little bit the logic of the code by changing only the loserKSq
variable when it is necessary. Also consolidate and clarify comments.

See the pull request thread for a proof that the code is correct:
https://github.com/official-stockfish/Stockfish/pull/1854

No functional change


No differences found