ok could you please see my code
srand(time(NULL));
system("MODE CON: COLS=90 LINES=360");
system("TITLE Press ^<ESC^> to exit");
cout << "Press <ESC> to exit\n\n";
int milliseconds = 500;
char key=0, esc=27;
while(key != esc)
{
int villain = rand();
system("cls");
char wall = 177, flute = 14, hero = 2,
life_hero = 3,life_evil = 3,villain1=1, bomb = 15,
fish = 21;
keys();
cout <<" +------------------+ "<<endl;
cout <<" | | "<<endl;
cout <<" | "<<fish<<" | "<<endl;
cout <<" | | "<<endl;
cout <<" | | "<<endl;
cout <<" +----------------+-------- -------+---------------+ "<<endl;
cout <<" | "<<life_evil<<""<<life_evil<<""<<life_evil<<" | "<<endl;
cout <<" | "<<villain<<" | "<<endl;
cout <<" | "<<hero<<" | "<<endl;
cout <<" | "<<life_hero<<""<<life_hero<<""<<life_hero<<" | "<<endl;
cout <<" +----------------+-------- -----+-----------------+ "<<endl;
cout <<" | | | | "<<endl;
cout <<" | | | | "<<endl;
cout <<" | | "<<endl;
cout <<" | | | | "<<endl;
cout <<" | | | | "<<endl;
cout <<" +----------------+----------------+-----------------+ "<<endl;
please compiler this code to test it
now can you see the 'vallian' varible?
every time i want the villaian to move right,middle,left randomly
please help
waiing for you