Workshop › Blackjack › Step 22 of 22

Build it yourself: six decks

What we are doing

Now it's your turn, without code to copy: like a casino, play with six decks shuffled together (312 cards), and show how many cards are left in the top right.

Your turn

Change newDeck to build six decks, and write the number of cards left, for example Cards 296.

Skills: Loops

All steps

  1. Cards
  2. A deck
  3. Shuffle
  4. Deal
  5. Cards on the table
  6. Card faces
  7. Keep drawing
  8. What is a hand worth?
  9. Aces: 11 or 1
  10. Hit: one more card
  11. Stand
  12. The hidden card
  13. Chips
  14. Who wins?
  15. The dealer's turn
  16. The next round
  17. Blackjack!
  18. Your record
  19. Double down
  20. Long hands fit
  21. Buttons
  22. Build it yourself: six decks