Skip to content

Split a match into periods that add back up to the full match length - #79

Merged
JaspervdM80 merged 1 commit into
mainfrom
claude/match-period-decimal-rounding-973z9x
Aug 12, 2026
Merged

Split a match into periods that add back up to the full match length#79
JaspervdM80 merged 1 commit into
mainfrom
claude/match-period-decimal-rounding-973z9x

Conversation

@JaspervdM80

Copy link
Copy Markdown
Owner

Period length was an integer number of minutes, so any duration that did not
divide evenly lost the remainder: a 50 minute match in quarters became 4 x 12,
and the dialog offered 48 minutes of a 50 minute match while the caption next
to it still said 50. Every planned-minutes figure multiplied that truncated
number back by 60, so the playing-time table planned everyone short too.

Carry the length in seconds instead. Sixty divides by every period count there
is, so the split is always exact, and the minutes form stays as a decimal for
the two captions that put it on screen. MatchClockReport already worked in
seconds for this reason and now asks the model rather than dividing itself.

Checked with dotnet build -c Release, dotnet test (395), the Playwright suite
(39), and scripts/coverage.sh.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01B7iiXxjNQueeYhqQAUKdkr

Period length was an integer number of minutes, so any duration that did not
divide evenly lost the remainder: a 50 minute match in quarters became 4 x 12,
and the dialog offered 48 minutes of a 50 minute match while the caption next
to it still said 50. Every planned-minutes figure multiplied that truncated
number back by 60, so the playing-time table planned everyone short too.

Carry the length in seconds instead. Sixty divides by every period count there
is, so the split is always exact, and the minutes form stays as a decimal for
the two captions that put it on screen. MatchClockReport already worked in
seconds for this reason and now asks the model rather than dividing itself.

Checked with dotnet build -c Release, dotnet test (395), the Playwright suite
(39), and scripts/coverage.sh.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B7iiXxjNQueeYhqQAUKdkr
@JaspervdM80
JaspervdM80 merged commit a919f8d into main Aug 12, 2026
4 checks passed
@JaspervdM80
JaspervdM80 deleted the claude/match-period-decimal-rounding-973z9x branch August 12, 2026 10:35
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