Change code for testing acceptable evasion drops
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 18 Feb 2018 22:18:38 +0000 (23:18 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 18 Feb 2018 22:18:38 +0000 (23:18 +0100)
commit3a1a3c999ac2f31e22b300a803d47987192d0c8e
treee070b74be2a21e9f703945c61fd2135909966621
parentb37ee3ab03f99fc14b8cbe2a9ca6f0c492a52c1f
Change code for testing acceptable evasion drops

The code deciding whether a piece could be dropped to block a distant check
was dependant on the exact numbering of the variants, making it difficult
to add new variants. It is replaced by code that only requires that variants
without dropping restriction in the last two ranks come behind all others.
The number of the first such variant is given by the constant KNIGHTLESS
(which must be adapted if variants with Knights are added!).
dropper.c