Skip to content

Commit 3b48924

Browse files
committed
refactor: Change minimum score
1 parent 413acf1 commit 3b48924

File tree

1 file changed

+1
-1
lines changed
  • game-service/game-domain/src/main/kotlin/com/grepp/quizy/game/domain/game

1 file changed

+1
-1
lines changed

game-service/game-domain/src/main/kotlin/com/grepp/quizy/game/domain/game/GamePlayService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class GamePlayService(
9595
val deductionPerMillis = 0.01 // 1초당 10점 감점
9696
val calculatedScore = baseScore - (timeTakenMillis * deductionPerMillis)
9797

98-
val finalScore = maxOf(calculatedScore, 50.0) // 최소 50점
98+
val finalScore = maxOf(calculatedScore, 0.0)
9999

100100
finalScore.roundToInt()
101101
} else {

0 commit comments

Comments
 (0)