Add an alternative pairing solution for round 7 of simple swiss

This commit is contained in:
Quentin Rendu
2023-10-26 10:55:28 +02:00
parent c4f891c036
commit df1df93ac2
2 changed files with 10 additions and 0 deletions

View File

@@ -95,18 +95,24 @@ sealed class BaseSolver(
val result = sorted.flatMap { games(white = it[0], black = it[1]) }
if (DEBUG_EXPORT_WEIGHT) {
var sumOfWeights = 0.0
for (it in sorted) {
println(it[0].nameSeed() + " " + it[0].place.toString()
+ " " + it[0].id.toString()
+ " " + it[0].colorBalance.toString()
+ " " + it[0].group.toString()
+ " " + it[0].drawnUpDown.toString()
+ " vs " + it[1].nameSeed()
+ " " + it[1].place.toString()
+ " " + it[1].id.toString()
+ " " + it[1].colorBalance.toString()
+ " " + it[1].group.toString()
+ " " + it[1].drawnUpDown.toString()
)
sumOfWeights += weight(it[0], it[1])
}
val dec = DecimalFormat("#.#")
println("sumOfWeights = " + dec.format(sumOfWeights))
}
return result