Question: Create a simple blackjack game for repl.it using Javascript node. The game must have a function called createDeck() to create an array on objects, the

Create a simple blackjack game for repl.it using Javascript node. The game must have a function called createDeck() to create an array on objects, the cards. Each object has a suit and a value. Create a function called shuffleDeck() that shuffles the cards. Have the code ask the user if they want to hit or stand and use recursion for the computer to decide if it should hit or stand. Display the score as well. The end input should look like this:

y Dealer: Five of Hearts and Ace of Hearts (6) Player: Six of Spades" v:shapes="Picture_x0020_120">

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!