I might be drunk
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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: "))
|
||||||
|
|||||||
Reference in New Issue
Block a user