Beispiel #1
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Puzzle.State curr = thePuzzle.advanceSearch();
            this.Title = String.Format(" Is solved? {0} ", curr.IsSolved());

            renderState(curr);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 private void renderState(Puzzle.State state)
 {
     txtResult.Text = state.ToString();
     flush();
 }