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