Example #1
0
    private void WinningCombination()
    {
        _firstGameCard.ChangeCardState(GameCard.CardState.Offside);
        _secondGameCard.ChangeCardState(GameCard.CardState.Offside);

        OnWinner?.Invoke();
    }
Example #2
0
 public void Validate()
 {
     if (HasWinner(out var winner))
     {
         OnWinner?.Invoke(winner);
     }
 }