Added move registration and validation
This commit is contained in:
@@ -38,10 +38,9 @@ public class GameService {
|
||||
return gameDto.getId();
|
||||
}
|
||||
|
||||
public String addMove(@RequestBody String gameId, @RequestBody Move move) throws Exception {
|
||||
public void addMove(@RequestBody String gameId, @RequestBody String move) {
|
||||
Game g = retrieveGame(gameId);
|
||||
g.addMove(move);
|
||||
save(g);
|
||||
return move.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user