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 count to find games where a rook visits all corners
********/

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