com.gbayer.basicblackjack
Class Game

java.lang.Object
  extended by com.gbayer.basicblackjack.Game

public class Game
extends java.lang.Object

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

STARTING_CHIPS

public static final int STARTING_CHIPS
Constant - Default number of starting chips.

See Also:
Constant Field Values

MIN_BET

public static final int MIN_BET
Constant - The minimum bet allowed.

See Also:
Constant Field Values

MAX_BET

public static final int MAX_BET
Constant - The maximum bet allowed.

See Also:
Constant Field Values
Constructor Detail

Game

public Game()
Instantiates a new game with default starting chips (500).


Game

public Game(int startingChips)
Instantiates a new game.

Parameters:
startingChips - the number of starting chips
Method Detail

play

public void play()
Execute steps to play game. Loop until until player out of chips or quits.


getDeck

public Deck getDeck()
Gets the deck.

Returns:
the deck

main

public static void main(java.lang.String[] args)
// BlackJack game starts here. Run this to play!

Parameters:
args - not used