Package org.cspoker.ai.bots.listener

Examples of org.cspoker.ai.bots.listener.DefaultBotListener


    .getLobbyContext(new DefaultLobbyListener());
    final PlayerId botId = clientContext.getAccountContext().getPlayerID();
    final SingleThreadRequestExecutor executor = SingleThreadRequestExecutor
    .getInstance();
    bot = botFactory.createBot(botId, tableId, lobbyContext, buyin,
        executor,new DefaultBotListener() {
      @Override
      public void onSitOut(SitOutEvent event) {
        // if(event.getPlayerId().equals(botId)){
        // try {
        // startBot(tableId, buyin);
View Full Code Here


    SmartClientContext clientContext = new SmartClientContext(conn);
    final SmartLobbyContext lobbyContext = clientContext.getLobbyContext(new DefaultLobbyListener());
    final PlayerId botId = clientContext.getAccountContext().getPlayerID();
    final SingleThreadRequestExecutor executor = SingleThreadRequestExecutor.getInstance();
    final TableId tableId = new TableId(0);
    bot = botFactory.createBot(botId, tableId, lobbyContext, 200000, executor, new DefaultBotListener() {
      @Override
      public void onSitOut(SitOutEvent sitOutEvent) {
        if(botId.equals(sitOutEvent.getPlayerId())){
          logger.info("Sitting in again after "+sitOutEvent);
          bot.reSitIn();
View Full Code Here

TOP

Related Classes of org.cspoker.ai.bots.listener.DefaultBotListener

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.