()
| 50 | return rules; |
| 51 | } |
| 52 | String getTitle() { |
| 53 | final Multiset<RegisteredPlayer> wins = getGamesWon(); |
| 54 | final StringBuilder titleAppend = new StringBuilder(title); |
| 55 | titleAppend.append(" ("); |
| 56 | for (final RegisteredPlayer rp : players) { |
| 57 | titleAppend.append(wins.count(rp)).append('-'); |
| 58 | } |
| 59 | titleAppend.deleteCharAt(titleAppend.length() - 1); |
| 60 | titleAppend.append(')'); |
| 61 | return titleAppend.toString(); |
| 62 | } |
| 63 | |
| 64 | public void addGamePlayed(Game finished) { |
| 65 | if (!finished.isGameOver()) { |
nothing calls this directly
no test coverage detected