static void Main(string[] args) { if (args.Length != 2) { Console.WriteLine("Usage: CNG462_A2 <mapfilename> <wordlist>"); Environment.Exit(1); } ReadFiles(args[0], args[1]); try { char[][] ResultMatrix = new CSP(Matrix, Domain).Solve(); Console.WriteLine("Solution has been found!"); Console.WriteLine(""); CSP.PrintMatrix(ResultMatrix); } catch (InvalidOperationException) { Console.WriteLine("A valid solution could not be found!"); } }