When I go to http://www.chessgames.com/, I can search for matches that end in draws. However, I can not figure out how to filter those draws to specifically threefold repetition. How can I find these types of draws while filtering out the rest?
If you have a collection of games in PGN format, you could probably search for threefold repetitions using the Chess Query Language. In particular, you might look in the "Matching positions: the position list" portion of the manual at the provided link; the
:sequence keyword would likely be instrumental to a CQL solution.
For an example of using CQL to do this sort of thing, see my answer to an earlier question about seeking out exchange sacrifices in games. The method given there uses CQL to scan games for short sequences of successive positions that have a material difference of an exchange. I imagine you'd be able to do something similar to seek out sequences of positions repeating three times.
There is a really famous one between Petrosian and Fischer. Fischer had a really tough position and was delighted with Tigran's last move and claimed a threefold repetition.
[Event "Fischer - Petrosian Candidates Final"] [Site "Buenos Aires ARG"] [Date "1971.10.07"] [EventDate "1971.09.30"] [Round "3"] [Result "1/2-1/2"] [White "Robert James Fischer"] [Black "Tigran Vartanovich Petrosian"] [ECO "C11"] [WhiteElo "?"] [BlackElo "?"] [PlyCount "67"] [FEN ""] 1. e4 e6 2. d4 d5 3. Nc3 Nf6 4. Bg5 dxe4 5. Nxe4 Be7 6. Bxf6 gxf6 7. g3 f5 8. Nc3 Bf6 9. Nge2 Nc6 10. d5 exd5 11. Nxd5 Bxb2 12. Bg2 O-O 13. O-O Bh8 14. Nef4 Ne5 15. Qh5 Ng6 16. Rad1 c6 17. Ne3 Qf6 18. Kh1 Bg7 19. Bh3 Ne7 20. Rd3 Be6 21. Rfd1 Bh6 22. Rd4 Bxf4 23. Rxf4 Rad8 24. Rxd8 Rxd8 25. Bxf5 Nxf5 26. Nxf5 Rd5 27. g4 Bxf5 28. gxf5 h6 29. h3 Kh7 30. Qe2 Qe5 31. Qh5 Qf6 32. Qe2 Re5 33.Qd3 Rd5 34.Qe2 1/2-1/2
There is an option in pgn-extract (--repetition) that will identify PGN games in which three-fold repetition occurs, regardless of whether the game is ended by it or not. Combined with the --markmatches option a comment can be added at the point(s) where this occurred for ease of identification.