Correct bug in group size impacting DUDD cost
This commit is contained in:
@@ -24,7 +24,7 @@ abstract class BasePairingHelper(
|
|||||||
}
|
}
|
||||||
// pairables sorted for pairing purposes
|
// pairables sorted for pairing purposes
|
||||||
protected val pairingSortedPairables by lazy {
|
protected val pairingSortedPairables by lazy {
|
||||||
pairables.sortedWith(::pairingSort)
|
pairables.sortedWith(::pairingSort).toMutableList()
|
||||||
}
|
}
|
||||||
// pairables sorted for pairing purposes
|
// pairables sorted for pairing purposes
|
||||||
protected val nameSortedPairables by lazy {
|
protected val nameSortedPairables by lazy {
|
||||||
|
@@ -79,6 +79,8 @@ sealed class BaseSolver(
|
|||||||
println("Bye player : " + chosenByePlayer.nameSeed())
|
println("Bye player : " + chosenByePlayer.nameSeed())
|
||||||
byePlayers.add(chosenByePlayer)
|
byePlayers.add(chosenByePlayer)
|
||||||
nameSortedPairables.remove(chosenByePlayer)
|
nameSortedPairables.remove(chosenByePlayer)
|
||||||
|
// Keep chosenByePlayer in pairingSortedPairables to be identical to opengotha
|
||||||
|
pairingSortedPairables.remove(ByePlayer)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i in nameSortedPairables.indices) {
|
for (i in nameSortedPairables.indices) {
|
||||||
@@ -326,7 +328,7 @@ sealed class BaseSolver(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(debug){
|
if(debug){
|
||||||
println("Names "+upperSP.nameSeed()+" "+lowerSP.nameSeed())
|
println("Names "+upperSP.nameSeed()+" "+upperSP.group+" "+lowerSP.nameSeed()+" "+lowerSP.group)
|
||||||
println("DUDD scenario, GroupDiff = "+scenario.toString()+" "+(upperSP.group-lowerSP.group).toString())
|
println("DUDD scenario, GroupDiff = "+scenario.toString()+" "+(upperSP.group-lowerSP.group).toString())
|
||||||
println("DUDD Upper/Lower modes = "+pairing.main.drawUpDownUpperMode.toString()+" "+pairing.main.drawUpDownLowerMode.toString())
|
println("DUDD Upper/Lower modes = "+pairing.main.drawUpDownUpperMode.toString()+" "+pairing.main.drawUpDownLowerMode.toString())
|
||||||
println("u/lSPgroupsize = "+uSPgroupSize.toString()+" "+lSPgroupSize.toString())
|
println("u/lSPgroupsize = "+uSPgroupSize.toString()+" "+lSPgroupSize.toString())
|
||||||
|
Reference in New Issue
Block a user