If it is greater than or equal to 17īut less than or equal to 21, then the dealer must st. If the total value in theĭealer’s hand is less than 17, then they must hit. If the player stays, then it’s the dealer’s turn to act. Display each updated hand after each card draw.Ħ. If it is, then the player wins, and if it is above 21, then the player If the player hits, keep checking whether the total value of the player’s cards isĮqual to 21. Prompt the player to either hit (that is, draw another card) or stay.ĥ. Give each player two cards (chosen randomly using random.choice).Ĥ. The game logic needs to follow this pattern:Ģ. Instructions Part 2-What you need to know: To submit, click the checkbox, or checkboxes, and then click the "Submit" Complete all lab requirementsīefore you submit your work. Your instructor mayĪdjust your score up or down based on your "make it your own" task. This lab is partially auto-graded and partially manually graded by your instructor. Get you warmed up, they want you to be able to create a blackjack game simulator. You’ve just been hired by a small-town casino that wants to create a simulated card playing platform. Lesson Title: Module Lab Assessment 5: Creating a Blackjack Simulator
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |