mirrormate.cql

// Download mirrormate.cql
// PGN output when run on sample.pgn

/* Mirror mate: one side is mated surrounded by empty squares */

cql(input heijden.pgn)
 flipcolor{
   btm
   mate
   _ attackedby k == 8
   }