excelsior-multiple.cql

// Download excelsior-multiple.cql
// PGN output when run on sample.pgn

/*******
This file finds games with multiple mainline excelsiors
It illustrates that the ID of a piece does not change after promotion
It sorts the result by the number of such excelsiors
*********/

cql(input heijden.pgn)

initial
 1<sort "Number of excelsiors"
        piece Excelsior in flipcolor Pa-h2
          find
	     move from Excelsior promote A