using System.Collections.Generic;
static void Main(string[] args)
List<int> snakeX = new List<int>();
List<int> snakeY = new List<int>();
Console.SetCursorPosition(1, 1);
key = Console.ReadKey().KeyChar;
Console.SetCursorPosition(1, 1);
case 'a': x = x - 1; break;
case 'd': x = x + 1; break;
case 'w': y = y - 1; break;
case 's': y = y + 1; break;
Console.SetCursorPosition(snakeX[0], snakeY[0]);
Console.SetCursorPosition(x, y);
if (x == Console.WindowWidth - 1)
Console.SetCursorPosition(0, 0);
Console.Write(fruitNumber);
System.Threading.Thread.Sleep(100);