On Tue, 01 Mar 2022 07:26:28 -0800, Sascha Zapf wrote:
Is there a MTS alternativ out there? I can't comlie it and the binaries
won't work at my PC
Here's the Windows binary - I think this was compiled with Fabrice
Bellard's Tiny C Compiler:
*
https://corewar.co.uk/mtswin.zip
I use three batch files to test multiple warriors against a benchmark. Benchmark warriors should have the extension .red and warriors to test
should have no extension.
---- TEST.BAT ----
@rem ** THIS FILE CALLS TESTXXXX FOR EVERY FILE WITHOUT AN EXTENSION **
@for %%f in (%1*.) do call testxxxx %%f
@scores
---- TESTXXXX.BAT ----
@rem ** THIS BATCHFILE CALLS MTS TO BENCHMARK THE WARRIOR **
@rem ** YOU CAN CHANGE THE PMARS PARAMETERS HERE (LINE 6) **
@echo off
echo f >xxxxxxxx.xxx
echo n >>xxxxxxxx.xxx
echo pmars -b -F 5555 -r 1000 -s 8000 -p 8000 -c 80000 -l 100
xxxxxxxx.xxx
echo y >>xxxxxxxx.xxx
echo %1.res >>xxxxxxxx.xxx
echo xxxxxxxx.xxx >>xxxxxxxx.xxx
echo %1 >>xxxxxxxx.xxx
for %%f in (*.red) do echo %%f >>xxxxxxxx.xxx
mts <xxxxxxxx.xxx
ren %1 %1.rc
erase xxxxxxxx.xxx
erase *.mts
---- SCORES.BAT ----
@echo off
copy %1*.res xxxxxxxx.yyy >nul
echo Name Author W L
T Score >results.txt
echo --------------------------------------------------------------------------- >>results.txt
find " 1 " xxxxxxxx.yyy |sort /+70 /r >>results.txt
erase xxxxxxxx.yyy
type results.txt |more
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)