コード例 #1
0
 private void check_Click(object sender, EventArgs e)
 {
     Moves++;
     if (opponent.Check(currentLocation))
     {
         ResetGame(true);
     }
     else
     {
         RedrawForm();
     }
 }
コード例 #2
0
 private void check_Click(object sender, EventArgs e)
 {
     Moves++;
     if (opponent.Check(currentLocation))
     {
         ResetGame(true);
     }
     else
     {
         MessageBox.Show("No one in there!");
         RedrawForm();
     }
 }