Project 6 – Blackjack Refinements

Due: Tuesday July 26th, 2005

(No late penalty for July 28th, 2005)

 

 

With Project 5, we had an assumption that there was an infinite amount of cards available to play with. In this project, you should rectify this assumption by making a card unique, and once dealt, is never dealt again.

 

To make a card unique, you should keep track of whether you have seen that particular card before. If you have, reject it and try to deal again. A good place to keep track of whether you’ve seen a card is with an array.

 

One assumption you can make is that the deck is reshuffled between each game.

 

What you need to do: