示例#1
0
 static void Main(string[] args)
 {
     if (args.Length == 0)
     {
         Console.WriteLine("Please specify file path as the first argument.");
     }
     else
     {
         var fileHandler = new FileHandler(args[0]);
         var board = new Board(fileHandler.Content);
         var gameEngine = new GameEngine();
         Console.Write(board.Printable);
         Console.WriteLine();
         var solved = gameEngine.Solve(board);
         Console.WriteLine();
         Console.WriteLine("Solved: " + solved);
         Console.WriteLine(board.Printable);
     }
 }
示例#2
0
 public void Can_read_fileContent()
 {
     var fileHandler = new FileHandler(@"C:\temp\sudoku\game.txt");
     Assert.IsNotNullOrEmpty(fileHandler.Content);
 }