most-visited-square.cql

// Download most-visited-square.cql
// PGN output when run on sample.pgn

/********
Find games where some square has been visited at least 15 times, and sort the results
by the number of times visited.
*********/

cql(input hhdbvi.pgn)
initial
square VisitedSquare in .
 sort "max number of visits to a single square"
   find 15 1000
      move to VisitedSquare