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

Pla 1183 fix multipoint calculation in playerinfo #1071

Merged
merged 10 commits into from
Feb 25, 2025

Conversation

vincentfrochot
Copy link
Member

No description provided.

When loading results for a player during a swiss tournament, use the
finalMultiPointScore for all finished games
@vincentfrochot vincentfrochot self-assigned this Feb 25, 2025
@vincentfrochot vincentfrochot merged commit da17cf7 into dev Feb 25, 2025
5 checks passed
@@ -526,8 +526,8 @@ case class Game(
}

return multiPointState match {
case Some(m) => f"${m.target}%02d${Math.min(m.target, m.p1Points + points2Add(0))}%02d${Math.min(m.target, m.p2Points + points2Add(1))}%02d"
case _ => "-"
case Some(m) => Some(MultiPointState(m.target, Math.min(m.target, m.p1Points + points2Add(0)), Math.min(m.target, m.p2Points + points2Add(1))))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future - this can now be a map (arguably it could have been a fold before)

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

Successfully merging this pull request may close these issues.

2 participants