Skip to content

Commit

Permalink
feat: 감옥 탈출 플레이어 아이디 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
HyowonSin committed Nov 1, 2023
1 parent 97583c1 commit 14705f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

@Getter
public class GamePrisonDiceResponse {
private String playerId;
private Integer dice1;
private Integer dice2;
private Boolean hasEscaped;

@Builder
private GamePrisonDiceResponse(Integer dice1, Integer dice2, Boolean hasEscaped) {
private GamePrisonDiceResponse(String playerId, Integer dice1, Integer dice2, Boolean hasEscaped) {
this.playerId = playerId;
this.dice1 = dice1;
this.dice2 = dice2;
this.hasEscaped = hasEscaped;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ public GamePrisonDiceResponse prisonDice(GamePrisonDiceRequest gamePrisonDiceReq
}

return GamePrisonDiceResponse.builder()
.playerId(player.getPlayerId())
.dice1(dice1)
.dice2(dice2)
.hasEscaped(player.getPrisonCount() == 0)
Expand Down

0 comments on commit 14705f0

Please sign in to comment.