Skip to content

Python exercise doubt in Kaggle #4

Closed Answered by diffrxction
soumyadeepdas28 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, I really appreciate your participation!

The first thing to note is how the game starts. You are given two cards as the player and the dealer (opponent) has one card at the very start.

Now, you(player) have the option to either ask for another card ("HIT") as long as you want. Then once you are done with drawing more cards, the dealer starts drawing cards. They also can choose as many as they want and stop.

The one whose sum of cards exceeds 21 first loses the game. (When either player_total or dealer_total exceeds 21)

Other conditions:

  • Aces or (A) cards can either hold the value 1 or 11 depending on whatever gives you a better chance of winning and keeps your player_total under 21.

S…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by soumyadeepdas28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants