Ejemplo n.º 1
0
 private void alertWinner()
 {
     if (ai.didIWin(computer))
     {
         MessageBox.Show("You lost!");
         this.computerStartsToolStripMenuItem.Enabled = true;
     }
     else if (ai.didIWin(player))
     {
         MessageBox.Show("You won!");
         this.computerStartsToolStripMenuItem.Enabled = true;
     }
     else if (ai.numSpacesLeft() == 0)
     {
         MessageBox.Show("It's a draw!");
         this.computerStartsToolStripMenuItem.Enabled = true;
     }
 }