Correct input reading name of parameter noHandicapThreshold
This commit is contained in:

committed by
Claude Brisson

parent
0bb62b6a3f
commit
f4a4921877
@@ -106,7 +106,7 @@ object OpenGotha {
|
|||||||
handicap = HandicapParams(
|
handicap = HandicapParams(
|
||||||
weight = pairParams.paiSeMinimizeHandicap.toDouble(),
|
weight = pairParams.paiSeMinimizeHandicap.toDouble(),
|
||||||
useMMS = handParams.hdBasedOnMMS.toBoolean(),
|
useMMS = handParams.hdBasedOnMMS.toBoolean(),
|
||||||
rankThreshold = Pairable.parseRank(pairParams.paiSeRankThreshold),
|
rankThreshold = Pairable.parseRank(handParams.hdNoHdRankThreshold),
|
||||||
correction = handParams.hdCorrection,
|
correction = handParams.hdCorrection,
|
||||||
ceiling = handParams.hdCeiling
|
ceiling = handParams.hdCeiling
|
||||||
)
|
)
|
||||||
|
@@ -95,8 +95,7 @@ data class HandicapParams(
|
|||||||
// minimizeHandicap is a secondary criteria but moved here
|
// minimizeHandicap is a secondary criteria but moved here
|
||||||
val weight: Double = 0.0, // Should be paiSeDefSecCrit for SwCat, 0 for others
|
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
|
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,
|
// Maximum rank used to compute handicap is rankThreshold
|
||||||
// then the game will be without handicap
|
|
||||||
val rankThreshold: Int = 0, // 0 is 1d
|
val rankThreshold: Int = 0, // 0 is 1d
|
||||||
val correction: Int = 1, // Handicap will be decreased by hdCorrection
|
val correction: Int = 1, // Handicap will be decreased by hdCorrection
|
||||||
val ceiling: Int = 9, // Possible values are between 0 and 9
|
val ceiling: Int = 9, // Possible values are between 0 and 9
|
||||||
|
Reference in New Issue
Block a user