mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed quick start action (for testing).
This commit is contained in:
parent
9a5dcbc662
commit
7734abe87f
1 changed files with 2 additions and 2 deletions
|
@ -510,14 +510,14 @@ public class TablesPanel extends javax.swing.JPanel {
|
||||||
try {
|
try {
|
||||||
MatchOptions options = new MatchOptions("1", "Two Player Duel");
|
MatchOptions options = new MatchOptions("1", "Two Player Duel");
|
||||||
options.getPlayerTypes().add("Human");
|
options.getPlayerTypes().add("Human");
|
||||||
options.getPlayerTypes().add("Computer - minimax");
|
options.getPlayerTypes().add("Computer - mad");
|
||||||
options.setDeckType("Limited");
|
options.setDeckType("Limited");
|
||||||
options.setAttackOption(MultiplayerAttackOption.LEFT);
|
options.setAttackOption(MultiplayerAttackOption.LEFT);
|
||||||
options.setRange(RangeOfInfluence.ALL);
|
options.setRange(RangeOfInfluence.ALL);
|
||||||
options.setWinsNeeded(1);
|
options.setWinsNeeded(1);
|
||||||
table = session.createTable(roomId, options);
|
table = session.createTable(roomId, options);
|
||||||
session.joinTable(roomId, table.getTableId(), "Human", "Human", 1, DeckImporterUtil.importDeck("test.dck"));
|
session.joinTable(roomId, table.getTableId(), "Human", "Human", 1, DeckImporterUtil.importDeck("test.dck"));
|
||||||
session.joinTable(roomId, table.getTableId(), "Computer", "Computer - minimax", 5, DeckImporterUtil.importDeck("test.dck"));
|
session.joinTable(roomId, table.getTableId(), "Computer", "Computer - mad", 5, DeckImporterUtil.importDeck("test.dck"));
|
||||||
session.startGame(roomId, table.getTableId());
|
session.startGame(roomId, table.getTableId());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
handleError(ex);
|
handleError(ex);
|
||||||
|
|
Loading…
Reference in a new issue