Add comment

This commit is contained in:
Claude Brisson
2024-04-11 16:35:17 +02:00
parent 704906dd90
commit 755bee7558

View File

@@ -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