Fix perpetual check detection
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 17 Nov 2019 11:54:18 +0000 (12:54 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 17 Nov 2019 11:54:18 +0000 (12:54 +0100)
commitecac535e904f031faf463e2c1180af2af2fa83a0
tree7619450c7a9beffe04b79473311400db08facb6e
parent4dfccb4c1826bdb7034799c2483fd3a4b11ed365
Fix perpetual check detection

Consider also perpetual checks by side to move
in order to avoid wrong draw scores.

Closes #49.
src/position.cpp