I think I understand the point where the rocket will reach next frame, but I can't predict the frames after that and how the planets affect it and the radius of the effect
Each planet has those arrows surrounding it that mark its gravity field. If on one turn you pass through one of those arrows, the next turn's movement will be affected.