Exemple #1
0
 private static void Actually_ShowDecisionTree(params object[] eventArgs)
 {
     if ((_isInGameMode) &&
         (MainForm.cmbWhite.SelectedItem.ToString() != "Human") &&
         (MainForm.cmbBlack.SelectedItem.ToString() != "Human"))
     {
         MessageBox.Show("To view the Decision Tree, at least 1 player must be human.");
     }
     else if ((eventArgs == null) || (eventArgs.Length == 0))
     {
         MessageBox.Show("The DecisionTree object is set to Null");
     }
     else
     {
         GuiDecisionTree gdt = new GuiDecisionTree((UvsChess.DecisionTree)eventArgs[0]);
         gdt.ShowDialog(MainForm);
     }
 }
Exemple #2
0
 private static void Actually_ShowDecisionTree(params object[] eventArgs)
 {
     if ((_isInGameMode) &&
         (MainForm.cmbWhite.SelectedItem.ToString() != "Human") &&
         (MainForm.cmbBlack.SelectedItem.ToString() != "Human"))
     {
         MessageBox.Show("To view the Decision Tree, at least 1 player must be human.");
     }
     else if ((eventArgs == null) || (eventArgs.Length == 0))
     {
         MessageBox.Show("The DecisionTree object is set to Null");
     }
     else
     {
         GuiDecisionTree gdt = new GuiDecisionTree((UvsChess.DecisionTree)eventArgs[0]);
         gdt.ShowDialog(MainForm);
     }
 }