コード例 #1
0
 private static void DrawBoard(IBoard board)
 {
     int i = 1;
     foreach (PositionedTile tile in board.Tiles())
     {
         if (board.CurrentTile == tile)
             DrawColoredSpace(ConsoleColor.Yellow);
         else
         {
             if (tile.IsActive)
                 System.Console.Write(tile.Number);
             else
                 DrawColoredSpace(ConsoleColor.Blue);
         }
         System.Console.Write("   ");
         if (i%_boardSize == 0) System.Console.Write("\n\n");
         i++;
     }
 }