Javascript implementation


I made this game. I want that when rabbit and turtle touches(overlap) each other then there one popup occur that you won the game.
please help me.

arrow keys will move turtle and (w,a,s,d) for rabbit.
there are two variables (left and up) for both the functions(rabbit and turtle) , if their values matches then pop up! that you won

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.