When I first began playing Chess, I was obsessed with the Scholar’s Mate, which is when white wins the game in only 4 moves. Such occurrences are quite rare when playing against experienced players. However, I recently began thinking about how checkmates in under a certain number of moves could be useful.
If a game is won in very few moves, there is a high chance that the winning player did not make any mistakes. Also, in certain arena tournaments, the winning player of the tournament is who has the most points by winning more games. Those who know how to win games in fewer moves can simply get more wins in the same amount of time.
Therefore, I have written some instructions for using pgn-extract to find games with a certain number of maximum moves. I have previously mentioned how useful this command line tool is. If you download your own database of games from lichess.org, you can use my example commands by simply changing the names of the files and your username in the commands to find the games you have won the fastest.
How to Find Checkmates
the “–checkmate” flag is used to only output games that end in a checkmate instead of a resignation or a stalemate. See the example commands here.
This first command takes all of the games where chastitywhiterose was the white player and won the game by checkmate.
pgn-extract -Twchastitywhiterose -Tr1-0 lichess_chastitywhiterose.pgn -ochastitywhiterose_white_wins_lichess.pgn --checkmate
The second does the reverse and finds every time that chastitywhiterose played as black and then black won the game by checkmate.
pgn-extract -Tbchastitywhiterose -Tr0-1 lichess_chastitywhiterose.pgn -ochastitywhiterose_black_wins_lichess.pgn --checkmate
How to Find Quick Checkmates
The documentation for pgn-extract shows that you can limit the length of games matched in database. By combining the “–checkmate” flag and the “–maxmoves” flag with a number as an option, you can find all the checkmates that happen up to that number of moves.
https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/help.html#move-bounds
For example, this command finds all my checkmates with white which happen in 10 moves or less.
pgn-extract -Twchastitywhiterose -Tr1-0 lichess_chastitywhiterose.pgn -ochastitywhiterose_white_wins_lichess.pgn --checkmate --maxmoves 10
And this does the same with black checkmates of 10 moves or less.
pgn-extract -Tbchastitywhiterose -Tr0-1 lichess_chastitywhiterose.pgn -ochastitywhiterose_black_wins_lichess.pgn --checkmate --maxmoves 10
Because I am someone who usually plays the Queen’s Gambit opening as white and the French Defense as black, very few of my games end this quickly. My play style is to slowly wear my opponent down in a long classical game. But perhaps your style is to take your opponents down quickly before they even know what happened!
I suggest downloading and installing the pgn-extract tool and placing the path to it in your system settings so you can run commands to extract your best wins.
My own purpose in this is to identify games that I have played which are high quality enough to include in a future Chess book. Fast wins are quite satisfying.


















