multiple-discovered-checks.cql

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

/**********
Find games with at least 5 discovered checks, sorted by the number
of discovered checks. 
************/

cql(input hhdbvi.pgn 
    sort matchcount 5 100
    )
not initial
flipcolor
  (A&~move to . previous) attacks k