|
-footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgarrettsmith.blackjack.Rules
public class Rules
Represents the rules that dictate how the game is played.
| Constructor Summary | |
|---|---|
Rules()
Creates an object with the default rules. |
|
Rules(java.util.Properties properties)
Creates an object with the rules specified by the properties passed in. |
|
| Method Summary | |
|---|---|
boolean |
canDoubleAfterSplit()
Returns whether the player can double down after splitting. |
boolean |
canSurrenderEarly()
Returns whether the player can surrender early. |
boolean |
canSurrenderLate()
Returns whether the player can surrender late. |
boolean |
doesDealerStandOnSoft17()
Returns whether the dealer stands on a soft 17. |
double |
getBlackjackPayoff()
Returns the multiple of the original wager that is paid when the player has blackjack. |
int |
getMaxSplits()
Returns the maximum number of splits allowed in one hand. |
int |
getNumberOfDecks()
Returns the number of decks used in the shoe for this game. |
double |
getShuffleLimit()
Returns the percent use, as a double between 0 and 1, at which the shoe is reshuffled. |
boolean |
isDoubleDownRestricted()
Returns whether double down is only allowed on 9s, 10s, and 11s. |
boolean |
isResplittingAcesAllowed()
Returns whether splitting already-split aces is allowed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rules()
public Rules(java.util.Properties properties)
| Method Detail |
|---|
public boolean doesDealerStandOnSoft17()
public double getBlackjackPayoff()
public boolean canDoubleAfterSplit()
public boolean canSurrenderEarly()
public boolean canSurrenderLate()
public int getMaxSplits()
public int getNumberOfDecks()
public boolean isResplittingAcesAllowed()
public boolean isDoubleDownRestricted()
public double getShuffleLimit()
|
-footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||