Design the BattleResult type (rounds, winners, scores, ticks, per-bot results) and implement parsing of the Java battle runner's stdout into it. This is the contract the whole framework is built on.
Blocked by: nothing
Grilling Revisions
Parser file: lives in common_libs/test_framework/parser.nim (not test_framework.nim). Named parser.nim to avoid confusion with test files.
**Wayfinder child of:** #126
Design the `BattleResult` type (rounds, winners, scores, ticks, per-bot results) and implement parsing of the Java battle runner's stdout into it. This is the contract the whole framework is built on.
**Blocked by:** nothing
### Grilling Revisions
**Parser file**: lives in `common_libs/test_framework/parser.nim` (not `test_framework.nim`). Named `parser.nim` to avoid confusion with test files.
**BattleResult fields — full score breakdown:**
- Per bot: `rank`, `name`, `totalScore`, `survival`, `lastSurvivorBonus`, `bulletDamage`, `bulletKillBonus`, `ramDamage`, `ramKillBonus`, `firstPlaces`, `secondPlaces`, `thirdPlaces`
- Per round: `seq[RoundResult]` with `roundNumber`, `turnCount`, `winner`
**Output contract — stdout/stderr split:**
- Parser only reads stdout (lifecycle markers + results block).
- Diagnostic output goes to stderr — parser never sees it.
- Runner must be updated to print per-round winner in the results block.
**Tests**: `common_libs/test_framework/tests/test_parser.nim`
Blocked by: #133 (not "nothing" as originally stated). The parser cannot be implemented until #133 defines the structured stdout output format from BattleRunner.java.
## Dependency correction
Blocked by: #133 (not "nothing" as originally stated). The parser cannot be implemented until #133 defines the structured stdout output format from BattleRunner.java.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Wayfinder child of: #126
Design the
BattleResulttype (rounds, winners, scores, ticks, per-bot results) and implement parsing of the Java battle runner's stdout into it. This is the contract the whole framework is built on.Blocked by: nothing
Grilling Revisions
Parser file: lives in
common_libs/test_framework/parser.nim(nottest_framework.nim). Namedparser.nimto avoid confusion with test files.BattleResult fields — full score breakdown:
rank,name,totalScore,survival,lastSurvivorBonus,bulletDamage,bulletKillBonus,ramDamage,ramKillBonus,firstPlaces,secondPlaces,thirdPlacesseq[RoundResult]withroundNumber,turnCount,winnerOutput contract — stdout/stderr split:
Tests:
common_libs/test_framework/tests/test_parser.nimDependency correction
Blocked by: #133 (not "nothing" as originally stated). The parser cannot be implemented until #133 defines the structured stdout output format from BattleRunner.java.
Implemented in commit
57a1915.