Beispiel #1
0
 public MainWindow()
 {
     InitializeComponent();
     puzzles = new Puzzles(MainPuzzles);
     Button_Play.IsEnabled    = false;
     Puzzles_First.IsReadOnly = true;
     Puzzles_End.IsReadOnly   = true;
 }
Beispiel #2
0
 private void Button_Play_Click(object sender, RoutedEventArgs e)
 {
     if (puzzles.Degree == -1)
     {
         return;
     }
     foreach (ulong stae in puzzles.Route)
     {
         List <int> LState = new List <int>();
         Puzzles.Hash2State(stae, ref LState);
         MainPuzzles.Update(LState);
         Thread.Sleep(400);
     }
 }