Allow entry of shogi promotions in any variant
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 28 May 2020 20:41:24 +0000 (22:41 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 28 May 2020 20:41:24 +0000 (22:41 +0200)
commite2d0290abb13270cee39783b764907e4bcd97e93
tree4857bee0cc83174d7427575d3980333f0b6d03d0
parent1744aede9487e7dab6afec43f64e752d3ef32c44
Allow entry of shogi promotions in any variant

Defining pieces as shogi-promotion partners did not cause triggering
of the promotion procedure when the corresponding basic piece reached
the zone for variants other than (Chu) Shogi. Now HasPromotionChoice()
recognizes pieces with a partner with ID '+' as promoting in any variant.
In variant fairy promotion on leaving the zone is now suppressed.
(This used to be only the case in variant elven.) This allows two-stage
promotions, where a Pawn first promote to a basic piece, and after leaving
the zone, the basic piece can promote again to its fixed partner.
(Like in Chess and a Half.)
backend.c