From 755bee7558e72f77f0c8a3ea452615f7af4f9d3a Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Thu, 11 Apr 2024 16:35:17 +0200 Subject: [PATCH] Add comment --- .../kotlin/org/jeudego/pairgoth/pairing/solver/BaseSolver.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/solver/BaseSolver.kt b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/solver/BaseSolver.kt index c1a9da4..c0241b0 100644 --- a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/solver/BaseSolver.kt +++ b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/solver/BaseSolver.kt @@ -512,6 +512,7 @@ sealed class BaseSolver( open fun HandicapParams.clamp(input: Int): Int { var hd = input + // TODO - validate that "correction" is >= 0 (or modify the UI and the following code to handle the <0 case) if (hd >= correction) hd -= correction else if (hd < 0) hd = max(hd + correction, 0) else hd = 0