public void Redraw(SnakeBody.Node newHead) { RedrawHead(newHead); }
private void RedrawTail(SnakeBody.Node oldTail) { Console.SetCursorPosition(oldTail.X, oldTail.Y); Console.Write(' '); }
private void RedrawHead(SnakeBody.Node newHead) { Console.ForegroundColor = ConsoleColor.DarkCyan; Console.SetCursorPosition(newHead.X, newHead.Y); Console.Write('#'); }
public void Redraw(SnakeBody.Node newHead, SnakeBody.Node oldTail) { RedrawHead(newHead); RedrawTail(oldTail); }
static bool Equals(SnakeBody.Node a, SnakeBody.Node b) => a.X == b.X && a.Y == b.Y;
static bool IsPositionEqual(SnakeBody.Node node, Food food) => node.X == food.X && node.Y == food.Y;