Allow engine to force user to make non-standard promotion
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 7 May 2016 10:06:51 +0000 (12:06 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 8 May 2016 12:06:34 +0000 (14:06 +0200)
commitb570994c0ee650a76b7957dca04263e719092a59
treedb58d8096f417699669d21273fb2d6b6a4b86fbc
parent2f5dfd12315375ba76634df6970d124042377740
Allow engine to force user to make non-standard promotion

The engine can now force an unexpected promotion on moves entered
by the user, by marking the to-square of such a move in blue.
Releasing a piece on such a blue square will then defer further
processing of the move (after having send the 'put' command to the
engine) until reception of a 'choice' command to specify what the
piece should promote to. This solves problems in Maka Dai Dai Shogi,
where a piece capturing a contageous piece would only be allowed to
promote to its normal promoted form if the to-square was marked in
purple (offering a P / +P toggle).
backend.c