public static string ScoreStringHuman(Score s) { return Translate.Dict (s.a) + " - " + Translate.Dict (s.b); }
public static Score AddWithDeuce(Score first, Score second) { return Add (first, second).Deuce (); }
public static string ScoreString(Score s) { return s.a + " - " + s.b; }
public static List<Score> AddToScores(List<Score> list, Score score) { list.Add (Add (list.Last (), score)); return list; }
public static Score AddWin(Score counter, Score score) { return (score.a > score.b) ? new Score (counter.a + 1, counter.b) : new Score (counter.a, counter.b + 1); }
public static Score Add(Score first, Score second) { return new Score (first.a + second.a, first.b + second.b); }
public static List<Score> AddToGameScores(List<Score> list, Score score) { list.Add (AddWithDeuce (list.Last (), score)); return list; }
public Score(Score score) { this.a = score.a; this.b = score.b; }
public static string WinString(Score score) { return "Winner: Player " + score.Winner ().ToString ().ToUpper () + " with " + score.WinScore (); }
public bool IsOver(Score score) { return score.HasMin (7) && score.HasAdvance (2); }
public string CurrentScoreString(Score s) { return Score.ScoreString (s); }
public string CurrentScoreString(Score s) { return "Game: " + Score.ScoreStringHuman (s); }