Fix pseudo-legal move validation (resolves #12)
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 9 Nov 2018 21:43:31 +0000 (22:43 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 9 Nov 2018 21:58:45 +0000 (22:58 +0100)
commit7f2056905e0808df42b7388e26d48ee16b0f0b72
tree24df596680f595da1fbab389725021bf71782849
parentbf85fd6a51cdd1acc00381a152e91e2765a36288
Fix pseudo-legal move validation (resolves #12)

For pieces which move and capture in different ways,
the pseudo-legal move validation needs to take into account
whether a move is a capture or not.

This fixes the pseudo-legal move validation for breakthrough and hoppelpoppel.

breakthrough
ELO: 372.25 +-109.6 (95%) LOS: 100.0%
Total: 100 W: 86 L: 7 D: 7

hoppelpoppel
ELO: 530.72 +-154.4 (95%) LOS: 100.0%
Total: 100 W: 92 L: 1 D: 7
src/position.cpp