Small changes to match score output to the game log.

This commit is contained in:
LevelX2 2013-05-20 10:52:36 +02:00
parent 8dd1a0fad0
commit 21a4aa09e4

View file

@ -244,8 +244,8 @@ public abstract class MatchImpl implements Match {
sb.append("\nMatch score:\n");
for (MatchPlayer mp :this.getPlayers()) {
sb.append("- ").append(mp.getPlayer().getName());
sb.append(" (").append(mp.getWins()).append(" wins / ");
sb.append(mp.getLoses()).append(" losses)\n");
sb.append(" (").append(mp.getWins()).append(mp.getWins()==1?" win / ":" wins / ");
sb.append(mp.getLoses()).append(mp.getLoses()==1?" loss)\n":" losses)\n");
}
sb.append("\n").append(this.getWinsNeeded()).append(this.getWinsNeeded() == 1 ? " win":" wins").append(" needed to win the match\n");
sb.append("\nGame has started\n");