Fix swiss scores
This commit is contained in:
@@ -17,8 +17,9 @@ class SwissSolver(round: Int,
|
|||||||
// In a Swiss tournament the main criterion is the number of wins and already computed
|
// In a Swiss tournament the main criterion is the number of wins and already computed
|
||||||
|
|
||||||
override val scores by lazy {
|
override val scores by lazy {
|
||||||
historyHelper.wins.mapValues {
|
pairablesMap.mapValues {
|
||||||
Pair(0.0, it.value) }
|
Pair(0.0, historyHelper.wins[it.value.id] ?: 0.0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
override val scoresX: Map<ID, Double> get() = scores.mapValues { it.value.second }
|
override val scoresX: Map<ID, Double> get() = scores.mapValues { it.value.second }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user