Package org.cspoker.ai.bots

Examples of org.cspoker.ai.bots.BotRunner


      int C2 = Integer.parseInt(args[3]);
     
      int treshold1 = Integer.parseInt(args[4]);     
      int treshold2 = Integer.parseInt(args[5]);
     
      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new MCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new SampleWeightedBackPropStrategy.Factory(),
                new StochasticUniversalSampler(),
                time
            ),
            new MCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTPlusSelector(C, C2)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            )
          }
      );
    }else if(args[0].equals("samples")){

      int p = Integer.parseInt(args[1]);
      int f = Integer.parseInt(args[2]);
      int t = Integer.parseInt(args[3]);
      int r = Integer.parseInt(args[4]);
     
      int C = Integer.parseInt(args[5]);
      double C2 = Double.parseDouble(args[6]);
      int treshold1 = Integer.parseInt(args[7]);
      int treshold2 = Integer.parseInt(args[8]);

      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new FixedSampleMCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
View Full Code Here


      int C = Integer.parseInt(args[2]);
      int treshold1 = Integer.parseInt(args[3]);
     
      int treshold2 = Integer.parseInt(args[4]);
     
      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new MCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/ai/opponentmodels/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new SampleWeightedBackPropStrategy.Factory(),
                new StochasticUniversalSampler(),
                time
            ),
            new MCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            )
          }
      );
    }else if(args[0].equals("samples")){

      int p = Integer.parseInt(args[1]);
      int f = Integer.parseInt(args[2]);
      int t = Integer.parseInt(args[3]);
      int r = Integer.parseInt(args[4]);
     
      int C = Integer.parseInt(args[5]);
      int treshold1 = Integer.parseInt(args[6]);

      int treshold2 = Integer.parseInt(args[7]);


      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new FixedSampleMCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
View Full Code Here

     
      int C = Integer.parseInt(args[2]);
      int treshold1 = Integer.parseInt(args[3]);     
      int treshold2 = Integer.parseInt(args[4]);

      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new CardBotFactory("CardBot"),
            new HandBotFactory("HandBot"),
            new MCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            )
          }
      );
    }else if(args[0].equals("samples")){

      int p = Integer.parseInt(args[1]);
      int f = Integer.parseInt(args[2]);
      int t = Integer.parseInt(args[3]);
      int r = Integer.parseInt(args[4]);
     
      int C = Integer.parseInt(args[5]);
      int treshold1 = Integer.parseInt(args[6]);
      int treshold2 = Integer.parseInt(args[7]);

      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new CardBotFactory("CardBot"),
            new HandBotFactory("HandBot"),
            new FixedSampleMCTSBotFactory(
View Full Code Here

      double C2 = Double.parseDouble(args[3]);
     
      int treshold1 = Integer.parseInt(args[4]);     
      int treshold2 = Integer.parseInt(args[5]);

      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new MCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTSelector(C)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            ),
            new MCTSBotFactory(
                "MaxDistribution Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
                new SamplingToFunctionSelector(treshold1,new UCTPlusSelector(C, C2)),
                new SamplingSelector(),
                new MaxValueSelector(),
                new MCTSBucketShowdownNode.Factory(),
                new MixedBackPropStrategy.Factory(
                    treshold2,
                    new SampleWeightedBackPropStrategy.Factory(),
                    new MaxDistributionBackPropStrategy.Factory()
                ),
                new StochasticUniversalSampler(),
                time
            )
          }
      );
    }else if(args[0].equals("samples")){

      int p = Integer.parseInt(args[1]);
      int f = Integer.parseInt(args[2]);
      int t = Integer.parseInt(args[3]);
      int r = Integer.parseInt(args[4]);
     
      int C = Integer.parseInt(args[5]);
      double C2 = Double.parseDouble(args[6]);
      int treshold1 = Integer.parseInt(args[7]);
      int treshold2 = Integer.parseInt(args[8]);

      new BotRunner(
          new EmbeddedCSPokerServer(),
          new BotFactory[] {
            new FixedSampleMCTSBotFactory(
                "Standard Bot",
                WekaRegressionModelFactory.createForZip("org/cspoker/client/bots/bot/search/opponentmodel/weka/models/model1.zip", config),
View Full Code Here

TOP

Related Classes of org.cspoker.ai.bots.BotRunner

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.