Example #1
0
 public void GetWinner(BasketballPlayer bk1, BasketballPlayer bk2)
 {
     if (bk1.GetIntPoints() > bk2.GetIntPoints())
     {
         SecondNotify?.Invoke($"\n\n{bk1.Name} is winner \n\n\n");
     }
     else
     {
         if (bk2.GetIntPoints() > bk1.GetIntPoints())
         {
             SecondNotify?.Invoke($"\n\n{bk2.Name} is winner \n\n\n");
         }
         else
         {
             if (bk1.GetIntPoints() == bk2.GetIntPoints())
             {
                 SecondNotify?.Invoke("\n\nDraw game!\n\n\n");
             }
         }
     }
 }
Example #2
0
 public void FinalScore(BasketballPlayer bk1, BasketballPlayer bk2)
 {
     SecondNotify?.Invoke($"\n\n{bk1.Name} scored {bk1.GetIntPoints()} points");
     SecondNotify?.Invoke($"{bk2.Name} scored {bk2.GetIntPoints()} points\n\n\n");
 }