int x, y, fruitX, fruitY, score; int tailX[100], tailY[100]; //snake coordinates int nTail; enum eDirecton {STOP = 0, LEFT,RIGHT, UP, DOWN}; // Controls eDirecton dir; void Setup() { gameover = false; dir = STOP; x = width / 2; y = height / 2; fruitX = rand() % width; //display fruit in a random place fruitY = rand() % height; score = 0; } void Draw() { system("cls"); for(int i = 0; i < width+2; i++) cout << "#"; cout << endl ;