Interface IPotState


public interface IPotState
The IPotState interface provides detailed information about the state of the hand, such as current chip counts for the players etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Counts the number of players who are all-in.
    int
    Counts the number of folded players.
    int
    Counts the number of players who are not folded and not all-in.
    long
    getChipsActive(int player)
    Get the active chip count for the player.
    long
    getChipsDead(int player)
    Get the dead chip count for the player.
    long
    getChipsRemaining(int player)
    Get the remaining chip count for the player.
    long
    Size of the total pot.
    int
    The street at this game state.
    boolean
    hasPlayerFolded(int player)
    Tests whether a player has folded.
    boolean
    isPlayerAllIn(int player)
    Tests whether a player is all-in.
  • Method Details

    • getStreet

      int getStreet()
      The street at this game state.
      Returns:
      street index
    • getChipsActive

      long getChipsActive(int player)
      Get the active chip count for the player. Chips are active if they are placed in front of a player for posting blinds or as a call, bet or raise.
      Parameters:
      player - index of player
      Returns:
      count in 1/100th of chips
    • getChipsRemaining

      long getChipsRemaining(int player)
      Get the remaining chip count for the player. These are the chips still placed in the player's stack.
      Parameters:
      player - index of player
      Returns:
      count in 1/100th of chips
    • getChipsDead

      long getChipsDead(int player)
      Get the dead chip count for the player. Dead chips are any chips that were put into the pot by this player that are no longer active.
      Parameters:
      player - index of player
      Returns:
      count in 1/100th of chips
    • getChipsTotalPot

      long getChipsTotalPot()
      Size of the total pot. This is the sum of all dead and active chips.
      Returns:
      count in 1/100th of chips
    • hasPlayerFolded

      boolean hasPlayerFolded(int player)
      Tests whether a player has folded.
      Parameters:
      player - index of player
      Returns:
      true if the player folded
    • isPlayerAllIn

      boolean isPlayerAllIn(int player)
      Tests whether a player is all-in.
      Parameters:
      player - index of player
      Returns:
      true if the player has zero chips remaining
    • countPlayersFolded

      int countPlayersFolded()
      Counts the number of folded players.
      Returns:
      number of folded players
    • countPlayersLive

      int countPlayersLive()
      Counts the number of players who are not folded and not all-in.
      Returns:
      number of live players
    • countPlayersAllIn

      int countPlayersAllIn()
      Counts the number of players who are all-in.
      Returns:
      number of all-in players