示例#1
0
        public MainWindow()
        {
            this.DataContext = new GameCoordinator();
            InitializeComponent();

            MCSTPlayer.ReadTree(filename2);
            MCTS2v2Player.ReadTree(filename);
        }
示例#2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     //MultipleTree.SaveTree(MonteCarloTreeSearchPlayer.filename);
     if (MessageBox.Show("Czy chcesz zapisać drzewka?", "Uwaga", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
     {
         MCSTPlayer.SaveTree(filename2);
         MCTS2v2Player.SaveTree(filename);
     }
 }