Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnlm committed Nov 30, 2023
1 parent dd462a3 commit 3bffc76
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import dev.lucasnlm.external.Leaderboard
import dev.lucasnlm.external.PlayGamesManager
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.filterNotNull
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOf
Expand Down Expand Up @@ -780,11 +779,9 @@ open class GameViewModel(
}
}

private fun matchExpectedValueStoch(x: Double): Int {

private fun matchExpectedValueStoch(value: Double): Int {
val randomNum = (1..100).random()

return if (randomNum <= (x - x.toInt())*100) x.toInt() + 1 else x.toInt()
return if (randomNum <= (value - value.toInt()) * 100) value.toInt() + 1 else value.toInt()
}

private fun calcRewardHints(): Int {
Expand Down

0 comments on commit 3bffc76

Please sign in to comment.