result
The
result filter takes a single argument which must be
1-0 or
0-1 or
1/2-1/2 . It is true in a position if the result of the current game equals the given result. For example,
result 1-0
A result filter may also be included as a CQL parameter, in addition to be used as an ordinary filter. For example,
cql (input i.pgn result 1-0)
countsquares 4 10 q
matches games where White wins even though black has at least 4 queens at some point. But this is equivalent to
cql (input i.pgn)
result 1-0
countsquares 4 10 q
The advantage of putting
result with the other filters is that it can be transformed using
flipcolor :
cql (input i.pgn)
flipcolor
{result 1-0
countsquares 4 10 q}
will match games where the losing side, White or Black, had at least 4 queens at one point.
Examples