public static void Start(string pMatrixSize) { string path = @"D:\Mariell\Documents\2020\Analisis\Project1\Files\" + pMatrixSize + ".txt"; //"C:\Users\Kenneth SF\OneDrive - Estudiantes ITCR\TEC\2020\I Semestre\Análisis de Algoritmos\Proyectos\Proyecto_1\10x10_4.txt"; //Reads the file and converts it into two list, one for the rows and the other for the columns ReadFile(path, rowList, columnList); var nonogramMatrix = new int[rowList.Count, columnList.Count]; FinalNonogram = new int[rowList.Count, columnList.Count]; GridFiller.StartExe(nonogramMatrix, rowList, columnList); Utilities.CleanMatrix(FinalNonogram); /*** * CHANGE ALL OF THIS * * GridFiller.StartExe(nonogramMatrix,rowList,columnList); * Console.WriteLine(); * Utilities.CleanMatrix(FinalNonogram); * if (Utilities.HasSolution(FinalNonogram)) * Utilities.Print2DArray(FinalNonogram); * else * Console.WriteLine("El Nonograma no posee solución"); */ }
// Start is called before the first frame update public static void Start() { const string path = @"D:\Mariell\Documents\2020\Analisis\Project1\Files\10x10_3.txt"; //"C:\Users\Kenneth SF\OneDrive - Estudiantes ITCR\TEC\2020\I Semestre\Análisis de Algoritmos\Proyectos\Proyecto_1\10x10_4.txt"; //Reads the file and converts it into two list, one for the rows and the other for the columns ReadFile(path, rowList, columnList); var nonogramMatrix = new int[rowList.Count, columnList.Count]; FinalNonogram = new int[rowList.Count, columnList.Count]; GridFiller.StartExe(nonogramMatrix, rowList, columnList); Utilities.CleanMatrix(FinalNonogram); //if (Utilities.HasSolution(FinalNonogram)) //{ // Solved = true; // } }