public void chooseStartingDirection(int w, int h) { int[] futher = { w - Position.Last().X, 1, 0 }; if (futher[0] < Position.Last().X) { futher[1] = -1; futher[2] = 0; } this.Direction = new Point(futher[1], futher[2]); }
public bool Dead() { for (int i = 0; i < Position.Count - 1; i++) { Point p = Position[i]; if (p.X == Position.Last().X&& p.Y == Position.Last().Y) { return(true); } } return(false); }