MCPcopy Create free account
hub / github.com/Card-Forge/forge / isDraw

Method isDraw

forge-game/src/main/java/forge/game/GameOutcome.java:123–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 public boolean isDraw() {
124 for (PlayerStatistics stats : playerRating.values()) {
125 if (stats.getOutcome().hasWon()) {
126 return false;
127 }
128 }
129 return true;
130 }
131
132 public boolean isWinner(final LobbyPlayer who) {
133 for (Entry<RegisteredPlayer, PlayerStatistics> pv : playerRating.entrySet())

Callers 3

resolveMethod · 0.95
simulateSingleMatchMethod · 0.80

Calls 3

valuesMethod · 0.80
hasWonMethod · 0.45
getOutcomeMethod · 0.45

Tested by

no test coverage detected