}
for(int totalPlayerNumberIndex = 0 ; totalPlayerNumberIndex < totalNumberOfPlayers; totalPlayerNumberIndex++) {
//_logger.info("Getting player " + i + "'s information");
int id = (totalPlayerNumberIndex+1)*21601;
Player player;
if((numberOfHumanPlayers == -1) || // computer players play themselves
(numberOfHumanPlayers == 0 && totalPlayerNumberIndex > 0) || // assumes 1 player + n-1 computers
(numberOfHumanPlayers == 1 && totalPlayerNumberIndex > 0) || // assumes 1 player + n-1 computers
(numberOfHumanPlayers == 2 &&
(
(totalNumberOfPlayers == 3 && totalPlayerNumberIndex == 1) ||
(totalNumberOfPlayers == 4 && (totalPlayerNumberIndex == 1 || totalPlayerNumberIndex == 3)) ||
(totalNumberOfPlayers == 5 && (totalPlayerNumberIndex == 1 || totalPlayerNumberIndex == 3 || totalPlayerNumberIndex == 4)) ||
(totalNumberOfPlayers == 6 && (totalPlayerNumberIndex == 1 || totalPlayerNumberIndex == 3 || totalPlayerNumberIndex == 4 || totalPlayerNumberIndex == 5))
)
) ||
(numberOfHumanPlayers == 3 &&
(
(totalNumberOfPlayers == 4 && (totalPlayerNumberIndex == 3)) ||
(totalNumberOfPlayers == 5 && (totalPlayerNumberIndex == 1 || totalPlayerNumberIndex == 3)) ||
(totalNumberOfPlayers == 6 && (totalPlayerNumberIndex == 1 || totalPlayerNumberIndex == 3 || totalPlayerNumberIndex == 5))
)
) ||
(numberOfHumanPlayers == 4 &&
(
(totalNumberOfPlayers == 5 && (totalPlayerNumberIndex == 1)) ||
(totalNumberOfPlayers == 6 && (totalPlayerNumberIndex == 1 || totalPlayerNumberIndex == 3))
)
) ||
(numberOfHumanPlayers == 5 &&
(
(totalNumberOfPlayers == 6 && (totalPlayerNumberIndex == 1 ))
)
)
) {
Player bot;
if (botsIterator.hasNext()) {
bot = botsIterator.next();
if (bot instanceof GameEventListener) {
wizardEngine.addGameEventListener((GameEventListener) bot );