Could you work out where each ball will pass the line and then move the paddle to the place that meets the most of the ball. Obviously time comes into play ie when will the balls pass the line and can the paddle get to position in time.

How to do the AI:Well when I think about this kind of stuff I imagine what the player has to do. Generally the player will attempt to hit the ball closest to their goal. Correct?So we get the ball that is closest in x-terms to the AI's paddle, and navigate the paddle to that ball.

How to do the AI:Well when I think about this kind of stuff I imagine what the player has to do. Generally the player will attempt to hit the ball closest to their goal. Correct?So we get the ball that is closest in x-terms to the AI's paddle, and navigate the paddle to that ball.

Yeah, I guess that could be a thing for a medium difficulty, instead of factoring speed as well.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org