test.sh uses MTS and pMARS to benchmark all warriors passed on the command line against all *.red warriors in the current directory. Warriors are renamed with a .rc extension after being benchmarked. Scores are saved with a .res extension. scores.sh displays a sorted list of scores from the .res files. test.sh --------------------------------------------------------------------- #!/bin/bash for f in "$@" do if ! { echo -e "f\nn\n./pmars -b -r 500 -F 1306 \ny\n$f.res\n\n$f"; ls ./*.red -1; echo; } | ./mts; then rm _recover.mts exit fi mv "$f" "$f".rc done --------------------------------------------------------------------- scores.sh --------------------------------------------------------------------- grep "^ 1 " -h *.res |sort -nr -k1.71,1.80 ---------------------------------------------------------------------