Well i have created another silly game.. Something similar to PAC man. But here the AI(Artifical Intelegence) i have used is so dumb. Is there any way you can make the circles more intelegent in capturing the users circle instead of just blindly followin it..
Here is the source.. User num pad key 4,6,8,and 2 to move around. Still in my previous question the problem of program freezing while input has not been completely been solved. The same problem occurs here..
# include <graphics.h>
# include <conio.h>
# include <dos.h>
# include <iostream.h>
# include <stdlib.h>
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "");
if((x==x1 && y==y1) || (x==x2 && y==y2))
cout<<" Game Over";