Class GetPlayerTurnService
java.lang.Object
com.chess.backend.restController.service.GetPlayerTurnService
This class handles the call to get the player who is currently on turn.
- Author:
- Hannes Stuetzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPlayerTurn
(int gameID) This methods gets the player who is currently on turn from theChessGameService
.
-
Constructor Details
-
GetPlayerTurnService
-
-
Method Details
-
getPlayerTurn
This methods gets the player who is currently on turn from theChessGameService
.- Parameters:
gameID
- the id of the current game.- Returns:
- containing the name of the player.
-