Added move registration and validation

This commit is contained in:
2025-12-12 16:45:12 +01:00
parent 47e812d710
commit f457911f3b
17 changed files with 269 additions and 45 deletions

View File

@@ -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();
}
}