Lesson 26. Capstone: Blackjack

In this capstone you’re going to build a Blackjack (21) game like the one shown in figure 26.1.

Figure 26.1. A Blackjack game

A game of cards has many sets. A deck is a set of cards and each player’s hand is also a set of cards. You’ll also make use of maps and eventually use a generator to create a function that slows down the looping of an iterator so that it can be animated on the screen.

Note

You’ll start your project using the start folder included in the code accompanying this book. If at any time you get stuck, you can also check out the final folder with the completed game. The start folder ...

Get Get Programming with JavaScript Next now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.