(String sessionId)
| 11 | } |
| 12 | |
| 13 | public Game newGame(String sessionId) throws SessionNotFoundException, GameNotFoundException { |
| 14 | String gameId = Identifiers.random(); |
| 15 | Game game = new Game(gameId, sessionId); |
| 16 | model.saveGame(game); |
| 17 | // Register game to session |
| 18 | sessionController.setSessionGame(sessionId, gameId); |
| 19 | return game; |
| 20 | } |
| 21 | |
| 22 | public Game getGame(String sessionId, String gameId) throws SessionNotFoundException, GameNotFoundException { |
| 23 | return model.loadGame(gameId); |
nothing calls this directly
no test coverage detected