Make gating mandatory in holdingless Seirawan
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 6 Apr 2020 17:14:30 +0000 (19:14 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 6 Apr 2020 17:14:30 +0000 (19:14 +0200)
commitd16a180562ec583bc4177257b315d92cf5d02b08
treefb0ac9350da2f467a38ccb3dc5ade3bd4c504689
parentcfb7f508c04a56b6c3c15acf1a1042908ec1394e
Make gating mandatory in holdingless Seirawan

Moving a piece 'in front of' a gatable piece is made mandatory,
by supplying the missing gating suffix in the move parser. To
achieve this the move type returned by LegalityTast() for a move
with missing suffix is White/BlackPromotion, even when the move is
a castling. The parser then adds the suffix, like it does for any
promotion without a suffix.
moves.c
parser.c