moved script to evaluate AI to scripts, make maximum duration of a game to be 16.6 minutes and default opponent in benchmarking to be VEGAS because it is fast

master
melvin 2011-05-23 16:01:33 +08:00
parent 40cfe85d39
commit 4cc0b9fb03
3 changed files with 6 additions and 3 deletions

View File

@ -31,4 +31,4 @@ test: $(MAG)
--ai2 RND --games 10 --strength 3
exp/%.log: $(MAG)
exp/evaluate_ai.sh $* > $@
scripts/evaluate_ai.sh $* > $@

View File

@ -2,6 +2,6 @@
hg id
for d1 in decks/LSK_RW.dec decks/LSK_LifeGain.dec decks/LSK_UW.dec decks/LSK_Jund.dec decks/LSK_Skullclamp_Swords.dec; do
for d2 in decks/LSK_RW.dec decks/LSK_LifeGain.dec decks/LSK_UW.dec decks/LSK_Jund.dec decks/LSK_Skullclamp_Swords.dec; do
java -ea -cp release/Magarena.jar magic.DeckStrCal --games 100 --strength 6 --deck1 $d1 --deck2 $d2 --ai1 $1 --ai2 MMAB;
java -ea -cp release/Magarena.jar magic.DeckStrCal --games 100 --strength 6 --deck1 $d1 --deck2 $d2 --ai1 $1 --ai2 VEGAS;
done
done

View File

@ -140,7 +140,10 @@ public class DeckStrCal {
while (!testTournament.isFinished()) {
final MagicGame game=testTournament.nextGame(false);
final GameController controller=new GameController(null,game);
controller.setMaxTestGameDuration(Long.MAX_VALUE);
//maximum duration of a game is 16.666 minutes
controller.setMaxTestGameDuration(1000000);
controller.runGame();
if (testTournament.getGamesPlayed() > played) {
System.out.println(