O'Reilly logo

Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond by JD Isaacks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required