Question: Black Jack game Using Ruby 1. create a function that generate a random number (between 1 to 10) 2. Call the function in step 1

Black Jack game Using Ruby 1. create a function that generate a random number (between 1 to 10) 2. Call the function in step 1 twice to generate two random numbers. Store the numbers in an array. 3. Display the number in the array to the user 4. Prompt the user to see if they want another card (random number). If so, append the number in the array in step 2 5. Repeat step 4 if the sum of the number in the array is below 16 but less than 21. Stop the game if the sum exceed 21 Please provide your code and screenshot of how your code ran. no point will be awarded if you did not utilize function, random number generator or arrays
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
