Exemple #1
0
 public static string ScoreStringHuman(Score s)
 {
     return Translate.Dict (s.a) + " - " + Translate.Dict (s.b);
 }
Exemple #2
0
 public static Score AddWithDeuce(Score first, Score second)
 {
     return Add (first, second).Deuce ();
 }
Exemple #3
0
 public static string ScoreString(Score s)
 {
     return s.a + " - " + s.b;
 }
Exemple #4
0
 public static List<Score> AddToScores(List<Score> list, Score score)
 {
     list.Add (Add (list.Last (), score));
     return list;
 }
Exemple #5
0
 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);
 }
Exemple #6
0
 public static Score Add(Score first, Score second)
 {
     return new Score (first.a + second.a, first.b + second.b);
 }
Exemple #7
0
 public static List<Score> AddToGameScores(List<Score> list, Score score)
 {
     list.Add (AddWithDeuce (list.Last (), score));
     return list;
 }
Exemple #8
0
 public Score(Score score)
 {
     this.a = score.a;
     this.b = score.b;
 }
Exemple #9
0
 public static string WinString(Score score)
 {
     return "Winner: Player " + score.Winner ().ToString ().ToUpper () + " with " + score.WinScore ();
 }
Exemple #10
0
 public bool IsOver(Score score)
 {
     return score.HasMin (7) && score.HasAdvance (2);
 }
Exemple #11
0
 public string CurrentScoreString(Score s)
 {
     return Score.ScoreString (s);
 }
Exemple #12
0
 public string CurrentScoreString(Score s)
 {
     return "Game: " + Score.ScoreStringHuman (s);
 }