rook-corners-rotate-with-range.cql

// Download rook-corners-rotate-with-range.cql
// PGN output when run on sample.pgn

/********
look for rook visiting the four corners
This uses rotate with a range to find games where a rook visits all corners
********/

cql( input heijden.pgn )
initial
 piece Rook in R
  rotate90 4
    find Rook & a1