|
@ -25,6 +25,11 @@ public class GameService |
|
|
return (GameId) repository.save(game).getId(); |
|
|
return (GameId) repository.save(game).getId(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Game findGameById(final GameId gameId) |
|
|
|
|
|
{ |
|
|
|
|
|
return repository.findByGameId(gameId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private Set<Field> initFields(UserId blackUser, UserId whiteUser) |
|
|
private Set<Field> initFields(UserId blackUser, UserId whiteUser) |
|
|
{ |
|
|
{ |
|
|
final Set<Field> fields = new HashSet<>(); |
|
|
final Set<Field> fields = new HashSet<>(); |
|
|