Support placement chess (close #10)
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 4 Nov 2018 11:32:22 +0000 (12:32 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 4 Nov 2018 11:32:22 +0000 (12:32 +0100)
commit99e11ae96b3307744de31f1bca5395d945f4403c
tree29373ade5c65cd89a88c085e82eaf04d65c8b344
parent91c0f4ba3c3a3cb0bda4ccda2eb6918daf5cbd9f
Support placement chess (close #10)

In order to support placement chess, new options are added:
- mandatory piece drops
- limiting drops to certain squares
- castling with dropped pieces
- bishop drops on opposite colors

Furthermore, support slash as separator for pieces in hand in FENs
of drop games for compatibility with FENs from pychess and lichess.
src/movegen.cpp
src/position.cpp
src/position.h
src/variant.cpp
src/variant.h
tests/perft.sh