Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Implement SkillValue class #2251

Open
wsbrenk opened this issue Mar 22, 2025 · 0 comments
Open

[FEATURE] Implement SkillValue class #2251

wsbrenk opened this issue Mar 22, 2025 · 0 comments
Milestone

Comments

@wsbrenk
Copy link
Collaborator

wsbrenk commented Mar 22, 2025

and use it in rating prediction and other places instead of Double

class SkillValue(var value: Double) {
    var displayValue: Double
        get() {
            if (value > 0) return value + 1;
            return 0.0;
        }
        set(v) {
            value = max(0.0, v - 1)
        }

    fun increment(v: Double) {
        value += v
    }
}
@wsbrenk wsbrenk added this to the 10.0 milestone Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant