The stalemate filter matches a position in which one side has been stalemated:


The stalemate filter is used in idealstalemate.cql, modelstalemate.cql, pinstalemate.cql, powerdifference-stalemate.cql, and purestalemate.cql.

An example of its use in finding mirror stalemates (where the the stalemated king is surrounded by empty squares) is in the file mirrorstalemate.cql, which finds the following position:

Matous 2007, after 6....Q:g8
(found from CQL file: mirrorstalemate.cql)