Exemple #1
0
 public Form1()
 {
     InitializeComponent();
     N3liza = new Nliza(size, 1, 7, -1, 7, 0, 1, outPut);
     initializeUserSelection();
     InitializeBoardArray();
     NextStep.Hide();
     AutoPlayBot.Checked = true;
     changeCurrentPlayerOnScreen(parseID(N3liza.currentPlayer.id));
     if (N3liza.currentPlayer.GetType() != typeof(player.Human) && autoMoveBots)
     {
         N3liza.play();
     }
 }
Exemple #2
0
 private void AutoPlayBot_CheckedChanged(object sender, EventArgs e)//it handles the changes of autoplay for the bot (if it is posible playes playes the bot)
 {
     autoMoveBots = AutoPlayBot.Checked;
     if (AutoPlayBot.Checked)
     {
         NextStep.Hide();
     }
     else
     {
         NextStep.Show();
     }
     if (N3liza.currentPlayer.GetType() != typeof(player.Human) && autoMoveBots)
     {
         N3liza.play();
     }
 }