Class EndGameService
java.lang.Object
com.chess.backend.restController.service.EndGameService
This class handles the call to end a game.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanendGame(int gameID) This method tells theChessGameServiceto end the game with the responding game ID and returns a boolean value indicating the success.
-
Constructor Details
-
EndGameService
-
-
Method Details
-
endGame
public boolean endGame(int gameID) This method tells theChessGameServiceto end the game with the responding game ID and returns a boolean value indicating the success.- Parameters:
gameID- the ID of the game that should be ended.- Returns:
- a boolean value indicating if the ending of the game was successful or not.
-