Merge pull request #5278 from ddugovic/established-rd

Reduce established (leaderboard) RD threshold
pull/5360/head
Thibault Duplessis 2019-07-31 12:00:24 +02:00 committed by GitHub
commit 3fa8df8910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -20,9 +20,9 @@ case class Glicko(
def intervalMax = (rating + deviation * 2).toInt
def interval = intervalMin -> intervalMax
def rankable = deviation <= Glicko.rankableDeviation
def provisional = deviation >= Glicko.provisionalDeviation
def established = !provisional
def establishedIntRating = established option intRating
def refund(points: Int) = copy(rating = rating + points)
@ -61,6 +61,7 @@ case object Glicko {
val defaultIntRating = default.rating.toInt
val minDeviation = 60
val rankableDeviation = 80
val provisionalDeviation = 110
val maxDeviation = 350

View File

@ -65,6 +65,7 @@ case class Perf(
def isEmpty = nb == 0
def nonEmpty = !isEmpty
def rankable = glicko.rankable
def provisional = glicko.provisional
def established = glicko.established
}

View File

@ -29,7 +29,7 @@ final class RankingApi(
"perf" -> perfType.id,
"rating" -> perf.intRating,
"prog" -> perf.progress,
"stable" -> perf.established,
"stable" -> perf.rankable,
"expiresAt" -> DateTime.now.plusDays(7)
),
upsert = true).void