I Can't seem to figure out how to make the computer pong AI actually beatable.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.Code:Computer.y=Ball.y; if(Computer.y>2.87){ Computer.y=2.87f; } if(Computer.y<-3.62){ Computer.y=-3.62f; }
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