#include < iostream > #include < conio.h > using namespace std; bool gameover; const int width = 20; const int height = 17; 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;