thank for your reply
repeating the same moves draw

If the exact same position shows on the board 3 times, it is a draw. Moves doesn't have to be successive.

Yeah, but in many cases it is successive because if it is not, there is a good possibility that a pawn will be moved in the meantime or something like that which would make the position completely different.
right -- its the position, not the moves. You can move your knight to the same 2 squares over and over 20+ times -- if the board is not in the exact same position 3 times, no draw.
It is rare but once in a while these draws are claimed far, far apart in moves. Most often its successive moves, usually at the end of a game, and they typically arise from 2 scenarios:
- one side is losing but found a way to check the king over and over, chasing it between a couple of squares until drawn
- or, both sides are at risk of losing if they make other moves. The ONLY good moves force the opponent to make a matching move, and then the only good move is back where it was, forcing the opponent back where it was, ... both sides are in a 'draw or lose' scenario each move.

As above its the three fold repetition of the position, the same position with the same player to move has to be reached three times and it does not need to be on three consecutive moves or by the same combination of three moves. Note also in OTB chess threefold repetition is not an automatic draw, a player must claim the draw on their turn to move.
FIDE Laws of Chess 9.2
The game is drawn upon a correct claim by the player having the move, when the same position, for at least the third time (not necessarily by a repetition of moves):
a. is about to appear, if he first writes his move on his scoresheet and declares to the arbiter his intention to make this move, or
b. has just appeared, and the player claiming the draw has the move.
Positions as in (a) and (b) are considered the same, if the same player has the move, pieces of the same kind and colour occupy the same squares, and the possible moves of all the pieces of both players are the same.Positions are not the same if a pawn that could have been captured en passant can no longer be captured in this manner. When a king or a rook is forced to move, it will lose its castling rights, if any, only after it is moved.
what are the rules for repeating moves how many moves can you repeat before it a draw