(Game finished)
| 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); |
no test coverage detected