예제 #1
0
파일: Form1.cs 프로젝트: MalykhS/Personal
 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;
     }
 }