Class EndGameService

java.lang.Object
com.chess.backend.restController.service.EndGameService

@Service public class EndGameService extends Object
This class handles the call to end a game.
  • Constructor Details

    • EndGameService

      @Autowired public EndGameService(ChessGameService gameService)
  • Method Details

    • endGame

      public boolean endGame(int gameID)
      This method tells the ChessGameService to 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.