Package org.cspoker.ai.bots.bot.gametree.rollout

Examples of org.cspoker.ai.bots.bot.gametree.rollout.RolloutResult


        double root = Math.sqrt(nbSamplesEst);
        nbCommunitySamples = (int) (root * rollout.nbMissingCommunityCards / 2);
        nbOpponentSamples = (int) (root * 2 / rollout.nbMissingCommunityCards);
      }

      RolloutResult result = rollout.doRollOut(nbCommunitySamples, nbOpponentSamples);

      int stackSize = rollout.botState.getStack();
      informListeners(result.getValues(), result.getTotalProb(), rollout.gamePotSize, stackSize);
      double mean = result.getMean();
      double var = result.getVariance(mean, nbOpponentSamples * nbCommunitySamples);
      valueDistribution = new Distribution(stackSize + mean, var);
    }
    return valueDistribution;
  }
View Full Code Here

TOP

Related Classes of org.cspoker.ai.bots.bot.gametree.rollout.RolloutResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.