Exemple #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);
     }
 }
Exemple #2
0
 public void SetUp()
 {
     var content = "510000083800416005000000000098504610000901000064203570000000000600157004780000096";
     _board = new Board(content);
     _gameEngine = new GameEngine();
 }