Oops, that is indeed a problem. The promotin pieces must always be defined first, so that maxPromote can specify how many promoting types there are. CwdA did not have this problem, as they had only one type of Pawns, defined first in the common part. I guess I must glue the variable parts of the diagram together a bit more carefully to get the desired order (using more + delimiters in the stored definitions to split them up). I will work on it.
Oops, that is indeed a problem. The promotin pieces must always be defined first, so that maxPromote can specify how many promoting types there are. CwdA did not have this problem, as they had only one type of Pawns, defined first in the common part. I guess I must glue the variable parts of the diagram together a bit more carefully to get the desired order (using more + delimiters in the stored definitions to split them up). I will work on it.