mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
Test scenario for Earthquake.
This commit is contained in:
parent
ea847e791b
commit
9bd5e95bda
5 changed files with 32 additions and 2 deletions
|
@ -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"/>
|
||||
|
|
Binary file not shown.
Binary file not shown.
30
Mage.Tests/scenario5.txt
Normal file
30
Mage.Tests/scenario5.txt
Normal 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
|
||||
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue