feat: Write current strength to strength.txt with configurable format#18
Merged
feat: Write current strength to strength.txt with configurable format#18
Conversation
…#11) Add sport-aware strength tracking that calculates players per side based on active penalties (hockey/lacrosse/rugby) or red cards (soccer) and writes the result to strength.txt using a configurable template format. - Add base_strength and min_strength to sport presets (hockey=5/3, soccer=11/7, lacrosse=5/3, rugby=15/13) - Configurable players-per-side via Game Settings UI - Strength label format with {{ home }}, {{ away }}, {{ if_pp }} template variables and live preview - Wrap Game Settings dialog in QScrollArea for resizability - JSON save/load persistence for base_strength and format - 37 tests in new test-scoreboard-core-strength.c - 100% line coverage maintained Closes #11 Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
strength.txt(e.g.,5-4,4v5)base - running penalties, clamped to minbase - red cardsvia existingfouls2counter{{ home }},{{ away }},{{ if_pp }}...{{ end_if }}and live previewSport defaults: Hockey 5/3, Soccer 11/7, Lacrosse 5/3, Rugby 15/13, others disabled.
Test plan
test-scoreboard-core-strength.cscoreboard-core.cCloses #11
🤖 Generated with Claude Code