white-try.cql

// Download white-try.cql
// PGN output when run on sample.pgn

/***********
this illustrates how to find positions that are "white tries".
These are positions that are
in a variation, but they arise from White moving from the mainline
************/

cql(input heijden.pgn variations gamenumber 1 1000 quiet)
 line <-- variation+
      <-- {mainline wtm}
 comment("white try")