Originally posted by NordlysMore than that. It must be dynamically the same so if en passant was possible the 1st time but not the third time then that does not count as a repetition, nor does it if everything is the same but it is a different player to move.
It should be added that it has to be the same player's move, and the castling rights have to be the same.
Edit - The repetition could, of course, be avoided by white playing Rf2 when the King escapes (to e2) from the repetition although white then may get mated by the Q & R.