mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Adding Tournaments to Simulater
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user