using System.Collections.Generic;
public static void Main()
game.direction = Direction.Right;
for (int i = 0; i< 4;i++)
game.direction = Direction.Up;
for (int i = 0; i< 3;i++)
for (int cols = 0;cols<game.MapSize;cols++,Console.Write("\n"))
for (int rows = 0; rows< game.MapSize;rows++)
Console.Write(game.Map[cols,rows]);
public List<SnakePart> snake;
public Direction direction;
direction = Direction.Right;
Map = new char[MapSize,MapSize];
snake = new List<SnakePart>();
Point head = new Point(snake[0].point.X,snake[0].point.Y);
if (direction == Direction.Right)head.Y++;
else if (direction == Direction.Left)head.Y--;
else if (direction == Direction.Up)head.X++;
Map[snake[snake.Count - 1].point.X,snake[snake.Count - 1].point.Y] = '•';
for (int i =1;i<snake.Count;i++)
snake[i].point = snake[i-1].point;
for (int i = 0; i< snake.Count;i++)
Map[snake[i].point.X, snake[i].point.Y] = '0';
private void DrawStartMap()
for (int cols = 0;cols<MapSize;cols++)
for (int rows = 0; rows< MapSize;rows++)
SnakePart head = new SnakePart(new Point(MapSize / 2,MapSize / 2));
SnakePart head2 = new SnakePart(new Point(MapSize / 2,(MapSize / 2) - 1));
SnakePart head3 = new SnakePart(new Point(MapSize / 2,(MapSize / 2) - 2));
for (int i = 0; i< snake.Count;i++)
Map[snake[i].point.X, snake[i].point.Y] = '0';
public SnakePart(Point p)