In order to make sense of the blackjack project, I made up this flow diagram to describe how the program creates ‘Hand’ objects consisting of two ‘card’ objects, and that these cards have properties that need to be generated and interpreted. The two properties are number (1-13, where 1 is Ace, 11 is Jack, 12, is Queen, etc) and suit (1-4, where each number is a given suit).
The properties of the cards can be set using a function, deal.
Once cards are made, they use two methods (because we are handling objects) to interpret the suit and value of each card.
Finally, we have two cards in a hand and can proceed to the next step…
Here’s a flow diagram of this process:
blackjack
July 9, 2013 at 2:18 pm
Hello to all, the contents existing at this web page are really amazing for people
knowledge, well, keep up the good work fellows.