Shadowwoelf
06-29-2007, 02:43 AM
I Can't seem to figure out how to make the computer pong AI actually beatable. Computer.y=Ball.y;
if(Computer.y>2.87){
Computer.y=2.87f;
}
if(Computer.y<-3.62){
Computer.y=-3.62f;
}
Thats pretty much my AI right there. Only problem is that it never actually loses. I tried some other variations like if its lower or higher then move it up or down .01f; with some random movement but that doesn't help.
SO how do I balance out the AI?
Also if you need my entire coding just ask
Thanks for reading, hope to hear from you soon
if(Computer.y>2.87){
Computer.y=2.87f;
}
if(Computer.y<-3.62){
Computer.y=-3.62f;
}
Thats pretty much my AI right there. Only problem is that it never actually loses. I tried some other variations like if its lower or higher then move it up or down .01f; with some random movement but that doesn't help.
SO how do I balance out the AI?
Also if you need my entire coding just ask
Thanks for reading, hope to hear from you soon