If you ask the engine to run 100 wars with 4 warriors in a war, instead of running every possible combination of 4 warriors 100 times, it will 100 times run a randomly selected group of 4 warriors - much less than the intended amount of runs. Can be reproduced by putting 4 survivors that only jump to themselves ("Do nothing") and asking the engine to run 1 war with 2 warriors. The problem in the code is in CompetitionIterator (Which seems to me like it isn't finished, there are leftovers from my BinomialIterator) and in Competition@runCompetition.
If you ask the engine to run 100 wars with 4 warriors in a war, instead of running every possible combination of 4 warriors 100 times, it will 100 times run a randomly selected group of 4 warriors - much less than the intended amount of runs. Can be reproduced by putting 4 survivors that only jump to themselves ("Do nothing") and asking the engine to run 1 war with 2 warriors. The problem in the code is in CompetitionIterator (Which seems to me like it isn't finished, there are leftovers from my BinomialIterator) and in Competition@runCompetition.