fix(test_framework): pass --tps -1 to server for uncapped headless speed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 22:57:28 +02:00
parent 6da42fb06d
commit be4e9549ef
19 changed files with 916 additions and 31 deletions
+7 -5
View File
@@ -31,7 +31,9 @@ const
let wallsbotDir = sampleBotsDir / "Walls"
let r = runBattle(@[snnbotDir, wallsbotDir], rounds = 10)
const ROUNDS = 20
let r = runBattle(@[snnbotDir, wallsbotDir], rounds = ROUNDS)
# Per-round stats
echo "=== Per-round results ==="
@@ -53,12 +55,12 @@ for rnd in r.rounds:
# Summary
echo ""
echo "=== Summary (10 rounds) ==="
echo fmt"=== Summary ({ROUNDS} rounds) ==="
var snnFinal, wallsFinal: BotResult
for b in r.results:
if b.name == "SNNBot": snnFinal = b
if b.name == "Walls (Nim)": wallsFinal = b
echo fmt"SNNBot : wins={snnWins}/10 totalScore={snnFinal.totalScore} survivalRounds={snnFinal.survivalCount} firstPlaces={snnFinal.firstPlaces}"
echo fmt"Walls : wins={wallsWins}/10 totalScore={wallsFinal.totalScore} survivalRounds={wallsFinal.survivalCount} firstPlaces={wallsFinal.firstPlaces}"
echo fmt"Win rate : {snnWins * 100 div 10}%"
echo fmt"SNNBot : wins={snnWins}/{ROUNDS} totalScore={snnFinal.totalScore} survivalRounds={snnFinal.survivalCount} firstPlaces={snnFinal.firstPlaces}"
echo fmt"Walls : wins={wallsWins}/{ROUNDS} totalScore={wallsFinal.totalScore} survivalRounds={wallsFinal.survivalCount} firstPlaces={wallsFinal.firstPlaces}"
echo fmt"Win rate : {snnWins * 100 div ROUNDS}%"