Exemple #1
0
 public static void DrawShape(Shape shape)
 {
     for (int i = 0; i < height; i++)
     {
         for (int j = 0; j < width; j++)
         {
             Console.SetCursorPosition(1 + 2 * j, i + 10);
             if (grid[i, j] == 1 || droppedShapeLocationGrid[i, j] == 1)
             {
                 Console.Write(shape.GetSymbolShape());
             }
             else
             {
                 Console.Write("  ");
             }
         }
     }
 }