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

Method addGamePlayed

forge-game/src/main/java/forge/game/Match.java:64–70  ·  view source on GitHub ↗
(Game finished)

Source from the content-addressed store, hash-verified

62 }
63
64 public void addGamePlayed(Game finished) {
65 if (!finished.isGameOver()) {
66 throw new IllegalStateException("Game is not over yet.");
67 }
68 lastOutcome = finished.getOutcome();
69 gameOutcomes.put(finished.getId(), finished.getOutcome());
70 }
71
72 public Game createGame() {
73 return new Game(players, rules, this);

Callers 1

setGameOverMethod · 0.80

Calls 4

getIdMethod · 0.65
isGameOverMethod · 0.45
getOutcomeMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected