Package org.cspoker.ai.bots.bot.gametree.search.nodevisitor

Examples of org.cspoker.ai.bots.bot.gametree.search.nodevisitor.StatisticsVisitor


        // }
      }

      @Override
      public void onActionPerformed() {
        StatisticsVisitor statistics = stats.getStatistics();
        if(statistics!=null){
          logger.info("NbNodes="+statistics.getNbNodes());
          logger.info("NbPrunedSubTrees="+statistics.getNbPrunedSubtrees());
          logger.info("NbPrunedTokens="+statistics.getNbPrunedTokens());
          logger.info("NbOpponentModelCalls="+statistics.getNbOpponentModelCalls());
        }
      }
    });
    bot.start();
    bot.startGame();
View Full Code Here


    }
  }

  private NodeVisitor[] createVisitors(GameState gameState) {
    NodeVisitor[] visitors = new NodeVisitor[nodeVisitorFactories.length+1];
    StatisticsVisitor stats = new StatisticsVisitor();
    for (int i = 0; i < nodeVisitorFactories.length; i++) {
      visitors[i] = nodeVisitorFactories[i].create(gameState,
          botId);
    }
    visitors[nodeVisitorFactories.length] = stats;
View Full Code Here

TOP

Related Classes of org.cspoker.ai.bots.bot.gametree.search.nodevisitor.StatisticsVisitor

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.