Computer Science Canada

Pong AI...

Author:  Kuntzy [ Mon Dec 08, 2003 10:49 pm ]
Post subject:  Pong AI...

Just wanted to see what you thought of the AI, please don't comment about the crappy collosion detection, or the simplicity, i just got started on this.

Author:  poly [ Mon Dec 08, 2003 11:34 pm ]
Post subject: 

Well I lost to it, because the paddle didnt move quick enough. Make it so that your paddle can get from the top to the bottom faster...

Author:  Tony [ Mon Dec 08, 2003 11:35 pm ]
Post subject: 

i think that slow paddle movement adds on to the difficulty. To the extend that AI has a definate advantage Rolling Eyes

Author:  poly [ Mon Dec 08, 2003 11:38 pm ]
Post subject: 

ya, in pong you can make an unbeatable ai...just make the computers paddle follow Y coordinate

Author:  Tony [ Mon Dec 08, 2003 11:44 pm ]
Post subject: 

poly wrote:
just make the computers paddle follow Y coordinate


it will work only if the paddle moves atleast as fast as the ball Rolling Eyes

But you can always just calculate where the ball will try to cross AI's line after being reflected by the player and move AI's paddle there. But unbeatable AIs are no fun to play against.

Author:  poly [ Mon Dec 08, 2003 11:58 pm ]
Post subject: 

Quote:
But unbeatable AIs are no fun to play against.
well it would be pretty fun playing against one....and i say that with sarcasm

Author:  Tony [ Tue Dec 09, 2003 12:47 am ]
Post subject: 

well you might as well play in pong against a wall then Laughing

Author:  santabruzer [ Tue Dec 09, 2003 8:23 am ]
Post subject: 

The best positions you want to be at..... the computer can't do a thing...

Author:  Kuntzy [ Tue Dec 09, 2003 1:31 pm ]
Post subject:  If I make you able to move faster...

The game is too easy, I am planning on makeing a easy, medium, difficult, and insane. And if I make the Computer mirror the ball, it will be impossbile, and you might as well play against a wall, making it meaningless.
Thank you for your input.

Author:  Andy [ Tue Dec 09, 2003 9:31 pm ]
Post subject: 

its easy to predict where the ball will end up, so making an unbeatable AI isnt hard... the instant the ball touches the opponent's padle, the AI should already know where its going...

Author:  roer [ Tue Dec 09, 2003 9:50 pm ]
Post subject: 

Change userSPEED to 5, it seems fairer Smile The AI dosent like moving much either

Author:  Tony [ Tue Dec 09, 2003 9:51 pm ]
Post subject: 

heck, if the angle of reflection is always the same (seeing as the paddle is flat) then AI should know where the ball will be after indefinate amount of moves in advance Laughing

Author:  Andy [ Tue Dec 09, 2003 10:07 pm ]
Post subject: 

well, if the ball hits the coner, shouldnt it bounce differently?

Author:  Kuntzy [ Tue Dec 09, 2003 11:43 pm ]
Post subject: 

[quote="dodge_tomahawk"]well, if the ball hits the coner, shouldnt it bounce differently?[/quote]

Like I said at the Start, i am goin to improve my collision detection. And I am now workinh on a paddle that looks something like this: /
|
\
This will make the game a little less predictable.
Also what does anyone think about adding in Random Walls here and there throughout the game, that could make it more interesting.

Author:  Tony [ Tue Dec 09, 2003 11:46 pm ]
Post subject: 

maybe not entirely random... you can have like different level maps Very Happy

you can think up a bunch of features to make the game more interesting... heck, you can have powerups and what not. 8)

Author:  ArchAngel16 [ Tue Dec 16, 2003 10:49 pm ]
Post subject: 

Well I cant seem to get it to run on mine. But then again I'm running 3.1.1A so if I upgrade it'll prolly work

Author:  DanShadow [ Wed Dec 17, 2003 12:06 pm ]
Post subject: 

Pretty neat, really found the "slloooow" moving paddle to be annoying, heh. AI is ok though

Author:  shorthair [ Wed Dec 17, 2003 11:00 pm ]
Post subject: 

nice progg


: