Example #1
0
 public Snake()
 {
     for (int i = 1; i < 6; i++)
     {
         CellSnake cell = new CellSnake(i, 1);
         bodySnake.Add(cell);
     }
 }
Example #2
0
 public static bool checkKoordEdge(CellSnake head)
 {
     if ((head.X > 0) && (head.X < 48) && (head.Y > 0) && (head.Y < 29))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }