Correct input reading name of parameter noHandicapThreshold

This commit is contained in:
Quentin Rendu
2024-05-23 15:34:21 +02:00
committed by Claude Brisson
parent 0bb62b6a3f
commit f4a4921877
2 changed files with 2 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ object OpenGotha {
handicap = HandicapParams(
weight = pairParams.paiSeMinimizeHandicap.toDouble(),
useMMS = handParams.hdBasedOnMMS.toBoolean(),
rankThreshold = Pairable.parseRank(pairParams.paiSeRankThreshold),
rankThreshold = Pairable.parseRank(handParams.hdNoHdRankThreshold),
correction = handParams.hdCorrection,
ceiling = handParams.hdCeiling
)

View File

@@ -95,8 +95,7 @@ data class HandicapParams(
// minimizeHandicap is a secondary criteria but moved here
val weight: Double = 0.0, // Should be paiSeDefSecCrit for SwCat, 0 for others
val useMMS: Boolean = true, // if useMMS is false, hd will be based on rank
// When one player in the game has a rank of at least hdNoHdRankThreshold,
// then the game will be without handicap
// Maximum rank used to compute handicap is rankThreshold
val rankThreshold: Int = 0, // 0 is 1d
val correction: Int = 1, // Handicap will be decreased by hdCorrection
val ceiling: Int = 9, // Possible values are between 0 and 9