for (int i = 0; i < nbCommunitySamples; i++) {
int communitySampleRank = fixedRank;
EnumSet<Card> usedCommunityAndBotCards = EnumSet.copyOf(usedFixedCommunityAndBotCards);
EnumSet<Card> usedCommunityCards = EnumSet.copyOf(usedFixedCommunityCards);
for (int j = 0; j < nbMissingCommunityCards; j++) {
Card communityCard = drawNewCard(usedCommunityAndBotCards);
if (traceEnabled) {
logger.trace("Evaluating sampled community card "
+ communityCard);
}
usedCommunityCards.add(communityCard);
communitySampleRank = updateIntermediateRank(
communitySampleRank, communityCard);
}
if (traceEnabled) {
logger.trace("Evaluating bot cards " + botCard1 + " "
+ botCard2);
}
int botRank = getFinalRank(communitySampleRank, botCard1, botCard2);
// int minSampleRank = Integer.MAX_VALUE;
// int maxSampleRank = Integer.MIN_VALUE;
// int sum = 0;
Multiset<Integer> ranks = new TreeMultiset<Integer>();
Multiset<Integer> deadRanks = new TreeMultiset<Integer>();
int n = 100;
for (int j = 0; j < n; j++) {
EnumSet<Card> handCards = EnumSet.copyOf(usedCommunityCards);
Card sampleCard1 = drawNewCard(handCards);
Card sampleCard2 = drawNewCard(handCards);
int sampleRank = getFinalRank(communitySampleRank, sampleCard1, sampleCard2);
ranks.add(sampleRank);
if(botCard1.equals(sampleCard1) || botCard1.equals(sampleCard2)
|| botCard2.equals(sampleCard1) || botCard2.equals(sampleCard2)){
deadRanks.add(sampleRank);