static void Main(string[] args) { var b1 = Board.ReadInString("000010000007905400000804000001000200470030096000090000016050940004321600308000102"); var board1 = new Board(b1); board1.PrintOut(); Console.Out.WriteLine("going to solve now"); Console.Out.WriteLine("\n\n"); board1.Solve(); board1.IsValid(); //board1.Assign(); Console.Read(); }
static void Main(string[] args) { //var b1 = Board.ReadIn(@"sample.txt"); //var b1 = Board.ReadInString("008450371020097560503800492300705849280030056745609003837006904012970030956043100"); //var b1 = Board.ReadInString("..845.371.2..9756.5.38..4923..7.584928..3..567456.9..3837..69.4.1297..3.956.431.."); var b1 = Board.ReadInString(" 845 371 2 9756 5 38 4923 7 584928 3 567456 9 3837 69 4 1297 3 956 431 "); var board1 = new Board(b1); board1.PrintOut2(); Console.Out.WriteLine("going to solve now"); Console.Out.WriteLine("\n\n"); board1.Solve(); Console.Read(); }