Medals

object Medals

Properties

Link copied to clipboard
const val GAP: Int = 3

The predefined gap between streak medals.

Functions

Link copied to clipboard
fun earned(before: Record, after: Record, outcome: Outcome): List<Medal>

Medals earned by moving from before to after with outcome.

Link copied to clipboard
fun nextGrit(lossStreak: Int): Pair<Medal, Int>
Link copied to clipboard
fun nextWin(streak: Int): Pair<Medal, Int>

The next win-streak medal to chase from a current streak.