Thread: Pong game AI
View Single Post
  #2  
Old 06-04-2006, 09:27 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
I would use a random variable for the accuracy, and make the y possition either more or less than the ball y by that much, per movement. This would allow it to move twoard the ball, but it may be off, or move too slow.
Reply With Quote