MCPcopy Index your code
hub / github.com/aws-samples/eb-java-scorekeep / newGame

Method newGame

src/main/java/scorekeep/GameFactory.java:13–20  ·  view source on GitHub ↗
(String sessionId)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 3

randomMethod · 0.95
saveGameMethod · 0.80
setSessionGameMethod · 0.80

Tested by

no test coverage detected