added rule to benchmark two different AIs randomly

master
melvin 2013-04-16 16:51:33 +08:00
parent bcf4bd6373
commit 7ac9ee3b18
1 changed files with 10 additions and 0 deletions

View File

@ -533,6 +533,16 @@ ai/benchmark.%:
ts make games=10 life=20 ai1=MMAB str1=1 ai2=VEGASC str2=1 $*11.t
ts make games=10 life=20 ai1=MMAB str1=1 ai2=VEGASC str2=8 $*12.t
ai/benchmark.rnd:
sort -R exp/AIs.txt > exp/rnd.txt; \
ts2 make games=10 life=20 \
ai1=`cat exp/rnd.txt | tail -1` \
str1=`sort -R exp/STRs.txt | tail -1` \
ai2=`cat exp/rnd.txt | tac | tail -1` \
str2=`sort -R exp/STRs.txt | tail -1` \
`date +%s`.t ai/benchmark.rnd
ai/merge.%:
seq -f "%02.0f" 1 12 | parallel "cat $*{}.log >> exp/A{}.log"