Fix ambiguous 960 castling
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 7 Feb 2021 16:37:06 +0000 (17:37 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 7 Feb 2021 20:36:18 +0000 (21:36 +0100)
commit7d74f16f32a7bc198640b6a33c72b79b7d191ee8
treeb276700fd144e1d59100f0c1696f706ecf75a9f8
parentb73b2d3808f91a0469fda3f566b717fb22935c9e
Fix ambiguous 960 castling

In case there is more than one "king" piece type that could
represent the castling piece, resolve this ambiguity in the FEN,
e.g., EAH means that an e-file king has a- and h-file rooks
with which it can perform castling.

For non-960 games disambiguation is achieved via configuration.

Closes #239.
src/movegen.cpp
src/parser.cpp
src/position.cpp
src/position.h
src/variant.cpp
src/variant.h
src/variants.ini