Package org.cspoker.common.elements.player

Examples of org.cspoker.common.elements.player.MutableShowdownPlayer


      Showdown.logger.debug(player);
    }

    List<MutableSeatedPlayer> winners = new ArrayList<MutableSeatedPlayer>();

    MutableShowdownPlayer winner = players.get(0);
    int i = 0;
    while ((i < players.size()) && winner.equals(players.get(i))) {
      winners.add(players.get(i).getPlayer());
      i++;
    }

    return winners;
View Full Code Here


   * @return The list of showdown players in the current game.
   */
  private List<MutableShowdownPlayer> getShowdownPlayersFromPot(MutablePot pot) {
    List<MutableShowdownPlayer> showDownPlayers = new ArrayList<MutableShowdownPlayer>();
    for (MutableSeatedPlayer player : pot.getContributors()) {
      showDownPlayers.add(new MutableShowdownPlayer(player,
          getBestFiveCardHand(player)));
    }
    if(logger.isInfoEnabled()){
      for(MutableShowdownPlayer player:showDownPlayers){
        Showdown.logger.info(player+" for "+pot.getChips());
View Full Code Here

  }

  private List<MutableShowdownPlayer> getShowdownPlayers(Collection<MutableSeatedPlayer> players) {
    List<MutableShowdownPlayer> showDownPlayers = new ArrayList<MutableShowdownPlayer>();
    for (MutableSeatedPlayer player : players) {
      showDownPlayers.add(new MutableShowdownPlayer(player,
          getBestFiveCardHand(player)));
    }
    return showDownPlayers;
  }
View Full Code Here

TOP

Related Classes of org.cspoker.common.elements.player.MutableShowdownPlayer

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.