Test scenario for Earthquake.

This commit is contained in:
magenoxx 2011-02-20 02:10:04 +03:00
parent ea847e791b
commit 9bd5e95bda
5 changed files with 32 additions and 2 deletions

View file

@ -7,7 +7,7 @@
<playerType name="Computer - default" jar="mage-player-ai.jar" className="mage.player.ai.ComputerPlayer"/>
<playerType name="Computer - minimax" jar="mage-player-aiminimax.jar" className="mage.player.ai.ComputerPlayer2"/>
<playerType name="Computer - minimax hybrid" jar="mage-player-aiminimax.jar" className="mage.player.ai.ComputerPlayer3"/>
<playerType name="Computer - mad" jar="mage-player-ai-ma.jar" className="mage.player.ai.ComputerPlayer5"/>
<playerType name="Computer - mad" jar="mage-player-ai-ma.jar" className="mage.player.ai.ComputerPlayer6"/>
</playerTypes>
<gameTypes>
<gameType name="Two Player Duel" jar="mage-game-twoplayerduel.jar" className="mage.game.TwoPlayerMatch" typeName="mage.game.TwoPlayerDuelType"/>

30
Mage.Tests/scenario5.txt Normal file
View file

@ -0,0 +1,30 @@
# Test playing Earthquake that kills opponent but not AI
### ComputerA ###
# Battlefield
battlefield:ComputerA:Island:2
battlefield:ComputerA:Mountain:1
battlefield:ComputerA:Dragonskull Summit:1
battlefield:ComputerA:Lavaclaw Reaches:1
# Hand
hand:ComputerA:Mountain:0
hand:ComputerA:Earthquake:1
# Library
# from down to top
library:ComputerA:clear:0
library:ComputerA:Mountain:15
# Life
player:ComputerA:life:5
### ComputerB ###
# Battlefield
battlefield:ComputerB:Plains:1
# Hand
hand:ComputerB:Plains:2
# Library
# from down to top
library:ComputerB:clear:0
library:ComputerB:Plains:10
# Life
player:ComputerB:life:4

View file

@ -56,7 +56,7 @@ public class PlayGameTest extends MageTestBase {
game.addPlayer(computerB, deck2);
game.loadCards(deck2.getCards(), computerB.getId());
//parseScenario("scenario4.txt");
parseScenario("scenario5.txt");
game.cheat(computerA.getId(), commandsA);
game.cheat(computerA.getId(), libraryCardsA, handCardsA, battlefieldCardsA, graveyardCardsA);
game.cheat(computerB.getId(), commandsB);