Ejemplo n.º 1
0
 static string ScoreForPlayerLeadingInAdvantage(GamePoints points)
 {
     return points.IsAnyLeadingBy(2)
     ? points.IsPlayerOneLeading() ? "Game Player One" : "Game Player Two"
     : points.IsPlayerOneLeading() ? "Advantage Player One" : "Advantage Player Two";
 }
Ejemplo n.º 2
0
 static string ScoreForPlayerLeadingInAdvantage(GamePoints points)
 {
     return(points.IsAnyLeadingBy(2)
 ? points.IsPlayerOneLeading() ? "Game Player One" : "Game Player Two"
 : points.IsPlayerOneLeading() ? "Advantage Player One" : "Advantage Player Two");
 }