botIndex = new int[nbPlayersPerGame];
botLobbies = new SmartLobbyContext[botFactories.length];
botIDs = new PlayerId[botFactories.length];
SmartClientContext director = new SmartClientContext(cspokerServer
.login("director", "test"));
directorLobby = director.getLobbyContext(BotRunner.this);
for (int i = 0; i < botFactories.length; i++) {
SmartClientContext clientContext = new SmartClientContext(
cspokerServer.login(botFactories[i].toString(), "test"));
botLobbies[i] = clientContext.getLobbyContext(new DefaultLobbyListener());
botIDs[i] = clientContext.getAccountContext().getPlayerID();
}
executor = SingleThreadRequestExecutor.getInstance();
combinationgenerator = new CombinationGenerator(botFactories.length, nbPlayersPerGame);