Skip to content

Commit

Permalink
fix: 주사위 결과 6을 고정 X #69
Browse files Browse the repository at this point in the history
  • Loading branch information
yhpark95 committed Nov 2, 2023
1 parent 76b426b commit cbf23a8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@ public GameDiceResult rollDice(Long gameId, String playerId) {
Player player = gameStatus.getPlayer(playerId);
int startLocation = player.getLocation();

// int dice1 = (int)(Math.random() * 6) + 1;
// int dice2 = (int)(Math.random() * 6) + 1;
int dice1 = 4;
int dice2 = 2;
int dice1 = (int)(Math.random() * 6) + 1;
int dice2 = (int)(Math.random() * 6) + 1;

if (dice1 == dice2) {
int countDouble = gameStatus.getCurrentPlayerInfo().increaseCountDouble();
Expand Down

0 comments on commit cbf23a8

Please sign in to comment.