public static void PrintBoard(MyBoard board) { for (int i = 0; i < board.NumLines; i++) { for (int j = 0; j < board.NumColumns; j++) { if (board.Piece(i, j) == null) { Console.Write("- "); } else { Console.Write(board.Piece(i, j) + " "); } } Console.WriteLine(); } }