Code review
This commit is contained in:
@@ -74,14 +74,14 @@ abstract class BasePairingHelper(
|
|||||||
}.toMap()
|
}.toMap()
|
||||||
}
|
}
|
||||||
|
|
||||||
// number of players in the biggest club and the biggest country
|
// number of players in the biggest club and the biggest country
|
||||||
// this can be used to disable geocost if there is a majority of players from the same country or club
|
// this can be used to disable geocost if there is a majority of players from the same country or club
|
||||||
protected val biggestClubSize by lazy {
|
protected val biggestClubSize by lazy {
|
||||||
pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!!
|
pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!!
|
||||||
}
|
}
|
||||||
protected val biggestCountrySize by lazy {
|
protected val biggestCountrySize by lazy {
|
||||||
pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!!
|
pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!!
|
||||||
}
|
}
|
||||||
|
|
||||||
// already paired players map
|
// already paired players map
|
||||||
protected fun Pairable.played(other: Pairable) = historyHelper.playedTogether(this, other)
|
protected fun Pairable.played(other: Pairable) = historyHelper.playedTogether(this, other)
|
||||||
|
Reference in New Issue
Block a user