i am working on a very simple dos game that can run even on xp here is the codei am going to continue working on this but before i start can you guys give me suggestions on what to add to these cases in the move function i would also apprietiate tips to make thi code more effiecient i am only using the knowledge that i have gained inthe past couple of days to create this.this is my first kinda major projectCode:// mover.cpp : Defines the entry point for the console application. // #include "stdafx.h" int winarray[20][12]; int move(int where); enum { KEY_ESC = 27, ARROW_UP = 256 + 72, ARROW_DOWN = 256 + 80, ARROW_LEFT = 256 + 75, ARROW_RIGHT = 256 + 77 }; static int get_code ( void ) { int ch = getch(); if ( ch == 0 || ch == 224 ) ch = 256 + getch(); return ch; } int main(int argc, char* argv[]) { char ch; int count,count2,mover; for(count=0;count<20;count++) winarray[count][0]=1; for(count=0;count<12;count++){ winarray[1][count]=1; winarray[20][count]=1; } mover=2; winarray[1][1]=mover; winarray[1][2]=mover; winarray[2][1]=mover; winarray[2][2]=mover; for(count=0;count<20;count++){ if(count<12){ switch(winarray[count][count]){ case 0:{ printf(" "); break; } case 1:{ printf("."); break; } case 2:{ printf("[]"); } } } if(count<=20){ switch(winarray[count][12]){ case 0:{ printf(" "); break; } case 1:{ printf("."); } case 2:{ printf("[]"); } } if(count==20){ printf("\n"); } } while ( ( ch = get_code() ) != KEY_ESC ) { switch ( ch ) { case ARROW_UP:{ system("cls"); move(1); break; } case ARROW_DOWN:{ system("cls"); move(2); break; } case ARROW_LEFT{ system("cls"); move(3); break; } case ARROW_RIGHT{ system("cls"); move(4); break; } } return 0; } int move(int where){ switch(where){ case 1:{} /*move up*/ case 2:{} /*move down*/ case 3:{} /*move left*/ case 4:{} /*move right*/ } return 0; }