private void button1_Click(object sender, RoutedEventArgs e) { Puzzle.State curr = thePuzzle.advanceSearch(); this.Title = String.Format(" Is solved? {0} ", curr.IsSolved()); renderState(curr); }
private void btnNoBrainer_Click(object sender, RoutedEventArgs e) { Puzzle.State curr = thePuzzle.PendingStates.Peek(); curr.DoNoBrainers(); this.Title = String.Format(" Is solved? {0} ", curr.IsSolved()); renderState(curr); }
private void renderState(Puzzle.State state) { txtResult.Text = state.ToString(); flush(); }