How can I make a simple AI for a pong game?
Printable View
How can I make a simple AI for a pong game?
Huh? AI for pong? That's, like, the one-player game where there's a little white dot for a ball and you have a little white line that it bounces off right? Or the 2-player version where there's 2 lines bouncing the ball back at each other?
Well a simple (really simple) and effective (flawless I guess) method would be to track the movement wouldn't it? Maybe you could use some random variables to make it wobble around a bit.
1 player. And some code would be nice. :(
<<Back to the top>>