Ejemplo n.º 1
0
 public void GetWinner(BasketballPlayer bk1, BasketballPlayer bk2)
 {
     if (bk1.GetIntPoints() > bk2.GetIntPoints())
     {
         Console.WriteLine($"\n\n{bk1.Name} is winner \n\n\n");
     }
     else
     {
         if (bk2.GetIntPoints() > bk1.GetIntPoints())
         {
             Console.WriteLine($"\n\n{bk2.Name} is winner \n\n\n");
         }
         else
         {
             if (bk1.GetIntPoints() == bk2.GetIntPoints())
             {
                 Console.WriteLine("\n\nDraw game!\n\n\n");
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void FinalScore(BasketballPlayer bk1, BasketballPlayer bk2)
 {
     Console.WriteLine($"\n\n{bk1.Name} scored {bk1.GetIntPoints()} points");
     Console.WriteLine($"{bk2.Name} scored {bk2.GetIntPoints()} points\n\n\n");
 }