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:
Oleg Agafonov 2025-05-31 10:39:23 +04:00 committed by GitHub
parent a61851db09
commit f2826cc676
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 247 additions and 256 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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();