/// <summary> /// Checks if the game is over yet. /// Calls End game if a mine was hit or all tiles were uncovered. /// </summary> /// <param name="tileStatus"></param> private void CheckGameStatus(TileStatus tileStatus) { if (tileStatus == TileStatus.Mine) { _detailsPresenter.EndGame(false); } else if (_gamePresenter.IsGameSuccessful( )) { _detailsPresenter.EndGame(true); } }
/// <summary> /// Checks if the game is over yet. /// Calls End game if a mine was hit or all tiles were uncovered. /// </summary> /// <param name="tileType"></param> private void CheckGameStatus(TileType tileType) { if (tileType == TileType.Mine) { _detailsPresenter.EndGame(false); } else if (IsGameSuccessful( )) { _detailsPresenter.EndGame(true); } }