Improve XBetza e.p. system
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 15 Dec 2019 11:25:46 +0000 (12:25 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 15 Dec 2019 11:25:46 +0000 (12:25 +0100)
commit61d3d34c62ee83fc3c6439e1a6b32b0b2f4e1570
treea6fb7fd37deaa2ccf9de2e82fd0fb33fb77b8abf
parent24364104200c448f2ca2d5f4f09cfd3c04216f6a
Improve XBetza e.p. system

The 'n' modifier can now be used on non-final legs of a multi-leg move
to indicate the target square of that leg becomes e.p. square. Pieces
that define an XBetza 'e' move will be able to use that move to e.p. capture
the last-moved piece when that moves goes to the e.p. square. To implement
this a routine was added to test whether this is the case (or whether the
e.p. capable piece used another move to go to the e.p. square).
  The limitation that there can only be more than a single e.p. square
when there is a pair of vertically adjacent ones still applies.
backend.c
moves.c
moves.h