|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackjackanalyst.Hand
blackjackanalyst.PlayerHand
public class PlayerHand
A hand of cards belonging to a player.
| Method Summary | |
|---|---|
boolean |
beenSplit()
Returns whether the hand has previously been split. |
int |
getBankroll()
Returns the bankroll of the player to which this hand belongs. |
int |
getBetAmount()
Returns the amount bet on this hand. |
int |
getBetNumber()
Returns the unique identifier of this bet for the round. |
java.util.List<PlayerHand> |
getBets()
Returns all bets belonging to the player this round. |
java.lang.String |
getName()
Returns the name of the player to which this hand belongs. |
boolean |
isBlackjack()
Returns whether the current hand is a blackjack. |
boolean |
isPair()
Returns whether the hand is a pair, meaning it consists of two cards with the same value. |
| Methods inherited from class blackjackanalyst.Hand |
|---|
getCards, getHighValidValue, getHighValue, getLowValue, getValues, isBusted, isFinished, isSoft, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isPair()
true if the hand is a pair, false
otherwisepublic boolean beenSplit()
true if the hand has previously been split,
false otherwisepublic java.lang.String getName()
public int getBankroll()
public int getBetAmount()
public int getBetNumber()
0; each successive
bet created by splitting increments the previous bet number.
public java.util.List<PlayerHand> getBets()
PlayerHand object is found at the index returned by method
getBetnumber.
public boolean isBlackjack()
true if the hand is an ace and a ten-valued card, and the
hand has not previously been split or the split card was not an ace.
isBlackjack in class Handtrue if the hand is a blackjack,
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||