I am a newbie
Well i was just reading a book named c++ primer and got bored so i just wanted to create a c++ consol game
just for some fun
I have created this thing any more idea and some repair in code?
void welcome()
{
cout<<"Welcome to the simplest game by thapchi corporations limited";
cout<<"\n \t \t press enter to continue....";
getchar();
system("cls");
}
int main()
{
welcome();
char move;
char map[49]="**********\n*****j****\n**********\n********** \n";
cout<<map;
cin>>move;
if(move=='w')
{
system("cls");
cout<<"****j*****\n**********\n**********\n**********";
getchar();
}
cin>>move;
if(move=='a')
{ system("cls");
cout<<"**j******\n**********\n**********\n**********";
getchar();
}
cin>>move;
if(move=='s')
{
system("cls");
cout<<"**********\n**j******\n**********\n**********";
getchar();
}
cin>>move;
if(move=='d')
{
system("cls");
cout<<"**********\n******j***\n**********\n**********";
getchar();
}
getchar();
return 0;
}