I'm working on something that's in a "Pong" type scenario. I'm trying to code AI behavior for it, but I'm not excellent with math.

I need a simple formula to predict the Y coordinate of where the ball will end up.

The result will be Floored, to give an idea on the degree of accuracy needed here.

The function may use expressions absolute value and modulo.

Each time the paddle hits the ball, I have the following information:

Starting X and Y coordinates (integers)

X ranges from 0 - 230

Y ranges from 0 - 320

X and Y Velocity given to the ball (floats)

See below for an example scenario.

Many thanks in advance!