Black Jack

 

The Rules

Blackjack is played with an ordinary deck of 52 cards. In this

game, human players are only playing against the computer.  A round of Blackjack is played according to these rules:

 

1) The dealer (the computer) gives the player two cards.

 

2) Each player's goal is to get more points than the dealer, but not to exceed 21

points. A player's points are determined by summing the contributions of

their cards:

 

á Face cards are worth 10 points.

á An ace is worth either 1 point or 11 points.

á All other cards are worth their face value.

 

3) After dealing out the starting cards, the player gets to accumulate a hand as close as they can to 21 without going over. A player can draw additional cards one by one from the deck until they no longer want any more. If at any point the player's hand exceeds 21, they are "busted" and lose.

 

4) After the player has had their turn and drawn as many cards as they want, the dealer(the computer) draws itÕs cards.  The dealer may not draw any more cards over the total of 17.

 

5) All ties go to the dealer.

 

6) You must use the shuffle( ) function and the getCard( ) function in your program.

 

7) The program must keep counts of wins and losses of the player.

 

8)  Programs must have comments.  Programs without comments will be returned without a grade, and will remain a zero until comments are added and it is re-submitted.

 

 

This program must be submitted into my dropbox located in my folder in the G drive which can only be accessed on school grounds.

 

  Return to Intro2Programming page

 

  Download printable copy in Word 2003 format