- Adding Tournaments to Simulater

This commit is contained in:
Sol
2016-04-17 16:32:20 +00:00
parent 271998b422
commit 1c0ebbae4c
9 changed files with 328 additions and 45 deletions

View File

@@ -159,6 +159,13 @@ public class Match {
return getGamesWonBy(questPlayer) >= rules.getGamesToWinMatch();
}
public RegisteredPlayer getWinner() {
if (this.isMatchOver()) {
return gamesPlayedRo.get(gamesPlayedRo.size()-1).getWinningPlayer().getRegisteredPlayer();
}
return null;
}
public List<RegisteredPlayer> getPlayers() {
return players;
}