mirrorstalemate.cql

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

/* Mirror stalemate: one side is stalemated surrounded by empty squares */

cql(input hhdbvi.pgn)
 ⬓{
   btm
   stalemate
   □←♚ == 8
   }