mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
skill setting is now used by AIs
This commit is contained in:
parent
33e7569f87
commit
c87328d08e
15 changed files with 52 additions and 52 deletions
|
|
@ -303,14 +303,14 @@ public class TablesPanel extends javax.swing.JPanel implements Observer {
|
|||
try {
|
||||
MatchOptions options = new MatchOptions("1", "Two Player Duel");
|
||||
options.getPlayerTypes().add("Human");
|
||||
options.getPlayerTypes().add("Computer - default");
|
||||
options.getPlayerTypes().add("Computer - minimax");
|
||||
options.setDeckType("Limited");
|
||||
options.setAttackOption(MultiplayerAttackOption.LEFT);
|
||||
options.setRange(RangeOfInfluence.ALL);
|
||||
options.setWinsNeeded(1);
|
||||
table = session.createTable(roomId, options);
|
||||
session.joinTable(roomId, table.getTableId(), "Human", "Human", 1, Sets.loadDeck("test.dck"));
|
||||
session.joinTable(roomId, table.getTableId(), "Computer", "Computer - default", 1, Sets.loadDeck("test.dck"));
|
||||
session.joinTable(roomId, table.getTableId(), "Computer", "Computer - minimax", 1, Sets.loadDeck("test.dck"));
|
||||
session.startGame(roomId, table.getTableId());
|
||||
} catch (Exception ex) {
|
||||
handleError(ex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue