Skip to content

Commit

Permalink
feat(score): better score points
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablito2020 committed May 5, 2022
1 parent 94a3b91 commit 96f65e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/kotlin/score/SimpleScoreCalculator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package score
class SimpleScoreCalculator : ScoreCalculator {
override fun getScore(cleanedRows: Int) = when (cleanedRows) {
0 -> Points(0)
1 -> Points(40 * 100)
2 -> Points(100 * 100)
3 -> Points(300 * 100)
4 -> Points(1200 * 100)
1 -> Points(40)
2 -> Points(100)
3 -> Points(160)
4 -> Points(200)
else -> throw java.lang.IllegalArgumentException("Rows should be from 0 to 4, not {$cleanedRows}")
}
}

0 comments on commit 96f65e5

Please sign in to comment.