mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
GUI, table: added drafts with single multiplayer and multiple 1vs1 games support (#13701)
- new tourney's single game mode allow to play tourneys/drafts with all players in one game without multiple rounds; - it's allow to setup classic drafts with 1 vs 1 games and multiple rounds - added AI opponents supported including draft bots from a public servers;
This commit is contained in:
parent
a61851db09
commit
f2826cc676
22 changed files with 247 additions and 256 deletions
|
|
@ -15,8 +15,7 @@ public class FreeformUnlimitedCommanderMatchTest extends MageTestPlayerBase {
|
|||
MatchOptions options = new MatchOptions(
|
||||
"test name",
|
||||
"test match name",
|
||||
false,
|
||||
2
|
||||
false
|
||||
);
|
||||
|
||||
// Act
|
||||
|
|
@ -32,8 +31,7 @@ public class FreeformUnlimitedCommanderMatchTest extends MageTestPlayerBase {
|
|||
MatchOptions options = new MatchOptions(
|
||||
"test name",
|
||||
"test match name",
|
||||
false,
|
||||
2
|
||||
false
|
||||
);
|
||||
Match match = new FreeformUnlimitedCommanderMatch(options);
|
||||
|
||||
|
|
@ -50,8 +48,7 @@ public class FreeformUnlimitedCommanderMatchTest extends MageTestPlayerBase {
|
|||
MatchOptions options = new MatchOptions(
|
||||
"test name",
|
||||
"test match name",
|
||||
false,
|
||||
2
|
||||
false
|
||||
);
|
||||
Match match = new FreeformUnlimitedCommanderMatch(options);
|
||||
|
||||
|
|
|
|||
|
|
@ -578,7 +578,7 @@ public class LoadTest {
|
|||
}
|
||||
|
||||
private MatchOptions createSimpleGameOptions(String gameName, GameTypeView gameTypeView, Session session, PlayerType playersType) {
|
||||
MatchOptions options = new MatchOptions(gameName, gameTypeView.getName(), true, 2);
|
||||
MatchOptions options = new MatchOptions(gameName, gameTypeView.getName(), true);
|
||||
|
||||
options.getPlayerTypes().add(playersType);
|
||||
options.getPlayerTypes().add(playersType);
|
||||
|
|
|
|||
|
|
@ -178,8 +178,7 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
|||
}
|
||||
|
||||
// prepare fake match (needs for testing some client-server code)
|
||||
// always 4 seats
|
||||
MatchOptions matchOptions = new MatchOptions("test match", "test game type", true, 4);
|
||||
MatchOptions matchOptions = new MatchOptions("test match", "test game type", true);
|
||||
currentMatch = new FreeForAllMatch(matchOptions);
|
||||
currentGame = createNewGameAndPlayers();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue