|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gbayer.basicblackjack.Game
public class Game
The driver class for the BasicBackJack game.
Field Summary | |
---|---|
static int |
MAX_BET
Constant - The maximum bet allowed. |
static int |
MIN_BET
Constant - The minimum bet allowed. |
static int |
STARTING_CHIPS
Constant - Default number of starting chips. |
Constructor Summary | |
---|---|
Game()
Instantiates a new game with default starting chips (500). |
|
Game(int startingChips)
Instantiates a new game. |
Method Summary | |
---|---|
Deck |
getDeck()
Gets the deck. |
static void |
main(java.lang.String[] args)
// BlackJack game starts here. |
void |
play()
Execute steps to play game. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STARTING_CHIPS
public static final int MIN_BET
public static final int MAX_BET
Constructor Detail |
---|
public Game()
public Game(int startingChips)
startingChips
- the number of starting chipsMethod Detail |
---|
public void play()
public Deck getDeck()
public static void main(java.lang.String[] args)
args
- not used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |