make it possible to change AI level and number of games in AI vs AI match rule

master
melvin 2013-03-09 21:44:47 +08:00
parent 6c4949c2f2
commit 7f0855a534
1 changed files with 6 additions and 3 deletions

View File

@ -177,13 +177,16 @@ buildhive:
make games=1000 `date +%s`.t zips
games ?= 10000
str1 ?= 1
str2 ?= 1
life ?= 10
%.t: $(MAG)
echo `hg id -n` > $*.log
$(JAVA) -Dmagarena.dir=`pwd`/release magic.DeckStrCal \
--seed $* \
--ai1 MMAB --str1 1 \
--ai2 MMABC --str2 1 \
--life 10 \
--ai1 MMAB --str1 ${str1} \
--ai2 MMABC --str2 ${str2} \
--life ${life} \
--games 1 \
--repeat ${games} >> $*.log 2>&1