/**
 * The driver for a two-person game of GoldDuke
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class GoldDuke
{
    /**
     * The entry-point of the application
     *
     * @param args    The command-line parameters
     */
    public static void main(String[] args)
    {
	Dealer        dealer;
	Deck          deck;
	Player        adamses, bernstdh;
	Table         table;


	table = new Table();
	deck  = new Deck();

	dealer = new GoldDukeDealer(deck);
	table.setDealer(dealer);

	bernstdh = new HumanGoldDukePlayer("Cool Hand Bernstein");
	table.addPlayer(bernstdh);

	adamses = new HumanGoldDukePlayer("Minnesota Fats Adams");
	table.addPlayer(adamses);

	// Uncomment the next line to shuffle the deck
	// before starting (Note: It will be easier to debug your
	// code if you don't tell the dealer to shuffle)
	// dealer.shuffle();

	// Play hand/game 1
	dealer.dealHand();

	// Cleanup after hand/game 1
	bernstdh.giveYourCardsBack();
	adamses.giveYourCardsBack();
	dealer.giveYourCardsBack();


	// Play hand/game 2 (with the remaining cards in the Deck)
	dealer.dealHand();

	// Cleanup after hand/game 2
	bernstdh.giveYourCardsBack();
	adamses.giveYourCardsBack();
	dealer.giveYourCardsBack();


	
    }
}
