示例#1
0
文件: Solver.cs 项目: joaoaab/8Puzzle
 /// <summary>
 /// iterates through the list in order to update the UI with the solution
 /// </summary>
 public void PrintSolution()
 {
     foreach (int[] b in this.solution)
     {
         this.game.SetMoveCount(game.GetMoveCount() + 1);
         main.UpdateBoard(b);
         Thread.Sleep(200);
     }
     this.solution = null;
     GC.Collect();
 }
示例#2
0
 public void UpdateCount()
 {
     MoveCountLabel.Text = "Number of Movements Made: " + game.GetMoveCount();
 }