I might be drunk

This commit is contained in:
2025-12-14 23:18:20 +01:00
parent 499639823e
commit ad279af3fc
2 changed files with 2 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ public class GameService {
return gameDto.getId(); return gameDto.getId();
} }
public String addMove(@RequestBody String gameId, @RequestBody String move) throws ServiceException { public String addMove(String gameId, String move) throws ServiceException {
try { try {
Game g = retrieveGame(gameId); Game g = retrieveGame(gameId);
g.addMove(move); g.addMove(move);

View File

@@ -5,13 +5,11 @@ from controllers.board_mate_controller import ApiController
if __name__ == "__main__": if __name__ == "__main__":
config = Configuration( config = Configuration(
host="http://192.168.15.120:8000" host="http://192.168.15.117:8000"
) )
controller = ApiController(config) controller = ApiController(config)
controller.add_move("693f288327f9ffb33360fa45", "e4")
white_name = input("White Name: ") white_name = input("White Name: ")
black_name = input("Black Name: ") black_name = input("Black Name: ")
time_value = int(input("Time value: ")) time_value = int(input("Time value: "))