Return to site

Blackjack tutorial app

broken image
broken image

We’ll re-assign the face card values later.Īll we do in the generate_cards method is loop through the suits and values and combine them into a card. We won’t assign the 11, 12, 13, 14 values to the J, Q, K, A values in the face_cards dictionary here. In order to generate a standard deck of 52 cards, we’ve got to define the card values and suits. I went over the details of this part in the Super Simple Python: Generate a Deck of Cards post. To be honest this is a level 1.5 project, or a late level 1 project.

broken image

I generally consider level 2 programs to be a little bit more complex than this, but this is more complex than most level 1 programs. I actually struggle with whether or not this should go into level 1 or level 2. The only library we’ll need in this project is the random library which we’ve explored several times through projects like our password generator, the high low guessing game, and the dice roll simulator. In this post, we’ll be building out a simple version of the game of Blackjack. These projects are more logically complex than the Super Simple Python projects and/or use multiple libraries. Level 1 Python projects are projects you can build in 30 to 45 minutes.

broken image