示例#1
0
 //Debug -- Prints the box size to the Console screen.
 public void ShowBoxStats(Player snake)
 {
     Console.Write("\nGamewindow Size: {0} x {1} = {2}", width, height, (height * width));
     Console.WriteLine("\n\nThe valid empty spaces inside the box are: ");
     foreach (int element in validSpaces)
     {
         Console.Write(element + ", ");
     }
     Console.WriteLine("\n\nThe amount of spaces: " + validSpaces.Count());
     Console.WriteLine("\nThe middle number in 'validSpaces' is: " + validSpaces[middleOfValidSpaces]);
     Console.WriteLine("Half of the Box size is: " + middleOfBoxOdd);
     Console.WriteLine("The snake is at position: {0}", snake.GetCoord());
 }