Exemplo n.º 1
0
        private void Button_Click_Tree(object sender, RoutedEventArgs e)
        {
            mcts.PauseSearching();
            mcts.WaitCycle();
            Button button = sender as Button;

            if (button.Tag == null)
            {
                return;
            }
            Node node = button.Tag as Node;

            show(node);
            mcts.ResumeSearching();
        }
Exemplo n.º 2
0
        void ResumeSearching()
        {
            if (mcts != null)
            {
                mcts.ResumeSearching();
            }

            Dispatcher.Invoke(() =>
            {
                ButtonStartAI.Content = "AI 잠시 멈춤";
            });
        }
Exemplo n.º 3
0
 public void Load(Mcts mcts)
 {
     this.mcts = mcts;
     mcts.PauseSearching();
     mcts.WaitCycle();
     if (mcts.root.parent != null)
     {
         listUpTree(mcts.root.parent);
         show(mcts.root.parent);
     }
     else
     {
         listUpTree(mcts.root);
         show(mcts.root);
     }
     mcts.ResumeSearching();
 }