import std/os import std/strutils import test_framework/test_framework if not existsEnv("TR_SERVER_JAR") or not existsEnv("TR_BATTLE_RUNNER"): echo "Skipping: TR_SERVER_JAR / TR_BATTLE_RUNNER not set" quit(0) let modularBotDir = "/home/davide/Projects/SirRoboGarage/ModularBot_garage" let sampleBotsDir = "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7" echo "\n=== BATTLE 1: ModularBot vs SpinBot (Circular Movement) ===" let r1 = runBattle(@[modularBotDir, sampleBotsDir / "SpinBot"], rounds = 10) echo "\nBattle 1 Results:" for bot in r1.results: echo " " & bot.name & ": score=" & $bot.totalScore & " rank=" & $bot.rank echo "Winners: " & r1.winners.join(", ") echo "\n=== BATTLE 2: ModularBot vs Crazy (Unpredictable Movement) ===" let r2 = runBattle(@[modularBotDir, sampleBotsDir / "Crazy"], rounds = 10) echo "\nBattle 2 Results:" for bot in r2.results: echo " " & bot.name & ": score=" & $bot.totalScore & " rank=" & $bot.rank echo "Winners: " & r2.winners.join(", ")