示例#1
0
 public static void Print(this char[,] charArray)
 {
     foreach (var row in charArray.EnumerateRows())
     {
         Console.WriteLine(new string(row.ToArray()));
     }
     Console.WriteLine();
 }
示例#2
0
 private static int CalcBlocksCount(char[,] board)
 {
     return(board.EnumerateRows().SelectMany(r => r).Count(c => c != '.'));
 }