/// <summary> /// Ask the computer for do its moves. /// </summary> private void letComputerPlayerPlay() { if (CurrentPlayer is ComputerPlayer) { ComputerPlayer computerPlayer = CurrentPlayer as ComputerPlayer; computerPlayer.SetThisTurn(); for (int i = 0; i < 2; i++) { System.Threading.Thread.Sleep(r_ComputerRevealingIterval); Application.DoEvents(); Point selection = computerPlayer.GetCellsToReveal(); TryReveal(selection.X, selection.Y); } } }