/// <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(); }
public void UpdateCount() { MoveCountLabel.Text = "Number of Movements Made: " + game.GetMoveCount(); }