Define BattleResult type and server output parser #127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.