From 7ac9ee3b1826355361d332e490dfc485a6c4aa6d Mon Sep 17 00:00:00 2001 From: melvin Date: Tue, 16 Apr 2013 16:51:33 +0800 Subject: [PATCH] added rule to benchmark two different AIs randomly --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index cd1bd92bfa..d66e4641c4 100644 --- a/Makefile +++ b/Makefile @@ -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"