import std/os import common_libs/test_framework/test_framework const modularBotDir = "/home/davide/Projects/SirRoboGarage/ModularBot_garage" tfAdversaries = "/home/davide/Projects/SirRoboGarage/common_libs/test_framework/adversaries" sittingDuck = tfAdversaries / "SittingDuck" # Skip if JARs are missing if not fileExists("/home/davide/Projects/tank-royale/server/build/libs/robocode-tankroyale-server-0.35.5-all.jar") or not fileExists("/home/davide/Projects/tank-royale/runner/examples/lib/robocode-tankroyale-runner.jar"): echo "Skipping: Tank Royale JARs not found" quit(0) echo "ModularBot vs SittingDuck — 3 rounds, maxSpeed" echo "" let r = runBattle(@[modularBotDir, sittingDuck], rounds = 1, timeout = 180000, maxSpeed = true) echo "" echo "=== Battle Result ===" echo "Rounds: ", r.rounds.len echo "Bots: ", r.bots echo "" echo "Final standings:" for result in r.results: echo " ", result.name, ": rank=", result.rank, " score=", result.totalScore, " survived=", result.survivalCount, " first=", result.firstPlaces echo "" echo "Winners: ", r.winners