querying the move

The following filters in CQL provide information about the next or previous move in the current position:

filter name example description
btm btm current position is black-to-move
initial initial position is first of game (no previous move)
move move from K
move to .
the next move matches its arguments
movenumber movenumber 10 20 current move number lies within range
terminal terminal no subsequent move
wtm wtm current position is white-to-move