// n.getLastAction().getProbability());
// }
// } catch (ClassCastException e) {
// System.out.println("-------------\nNO CLASS CAST\n-------------"); // do nothing
// }
SearchBotAction action = node.getLastAction().getAction();
if(logger.isInfoEnabled())
logger.info("Stopped MCTS after "+root.getNbSamples()+" samples and choosing "+action);
// to calculate efficiency of sampling algorithms
// if (tableContext.getGameState().getRound() == Round.PREFLOP)
// System.out.print(root.getNbSamples());
// System.out.print("\t");
// if (tableContext.getGameState().getRound() == Round.FLOP)
// System.out.print(root.getNbSamples());
// System.out.print("\t");
// if (tableContext.getGameState().getRound() == Round.TURN)=
// System.out.print(root.getNbSamples());
// System.out.print("\t");
// if (tableContext.getGameState().getRound() == Round.FINAL)
// System.out.print(root.getNbSamples());
// System.out.println("");
action.perform(playerContext);
MCTSListener[] listeners = createListeners(gameState, botId);
for (MCTSListener listener : listeners) {
listener.onMCTS(root);
}
}