most-visited-square-2.cql

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

/* Similar to most-visited-square-1, except comments the
  actual most visited square.
*/

cql(input heijden.pgn)
initial
square VisitedSquare in .
 sort "max number of visits to a single square"{
   comment ("The most visited square is: " VisitedSquare)
   find all
      move to VisitedSquare
  }>=15