Define piece types with ambiguous demotion multiple times
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 20 Dec 2025 11:07:13 +0000 (12:07 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 20 Dec 2025 11:07:13 +0000 (12:07 +0100)
commitca61be3e25ff35aea56d57499f1ac61fc7a4067c
tree12660dfd44e13cbf5eae89dcd5c18159147917bd
parent885518750c4fa19658df01e4b6993afcef9646bd
Define piece types with ambiguous demotion multiple times

The predefined variants now define pieces that demote differently (or not
at all) multiple times, as custom pieces. To make this possible add_piece()
was changed to allow pieces with the same ID if the synonym is '+'.
a new arrays demotedPieceType[PieceType] and a PieceSet isDemotedType
are set to record this, for later use.
src/variant.cpp
src/variant.h