Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hi, #46

leocarrio started this conversation in General
Hi, #46
Dec 9, 2021 · 2 comments · 7 replies
Discussion options

Need someone strong in python to code black jack for final exam in business school

You must be logged in to vote

Replies: 2 comments 7 replies

Comment options

Need someone strong in python to code black jack for final exam in business school

Yes, what exactly needs to be written

You must be logged in to vote
6 replies
Comment options

I really need help for this so guys I m looking for kind people ahahhah

Comment options

https://replit.com/@kalel1130/intropythonexam

这是最终作业的链接

我认为好人可以在10分钟内完成
Ah, I have a wall here, I can’t see the video

Comment options

-Deal both user and computer a starting hand of 2 random card values.

-Detect when computer or user has a blackjack. (Ace + 10 value card).

-If computer gets blackjack, then the user loses (even if the user also has a blackjack). If the user gets a blackjack, then they win (unless the computer also has a blackjack).

-Calculate the user's and computer's scores based on their card values.

-If an ace is drawn, count it as 11. But if the total goes over 21, count the ace as 1 instead.

-Reveal computer's first card to the user.

-Game ends immediately when user score goes over 21 or if the user or computer gets a blackjack.

-Ask the user if they want to get another card.

-Once the user is done and no longer wants to draw any more cards, let the computer play. The computer should keep drawing cards unless their score goes over 16.

-Compare user and computer scores and see if it's a win, loss, or draw.

-Print out the player's and computer's final hand and their scores at the end of the game.

-After the game ends, ask the user if they'd like to play again. Clear the console for a fresh start.

Comment options

That's the exercice

Comment options

the more understanding i get the better it becomes
thanks : )

Comment options

-Deal both user and computer a starting hand of 2 random card values.

-Detect when computer or user has a blackjack. (Ace + 10 value card).

-If computer gets blackjack, then the user loses (even if the user also has a blackjack). If the user gets a blackjack, then they win (unless the computer also has a blackjack).

-Calculate the user's and computer's scores based on their card values.

-If an ace is drawn, count it as 11. But if the total goes over 21, count the ace as 1 instead.

-Reveal computer's first card to the user.

-Game ends immediately when user score goes over 21 or if the user or computer gets a blackjack.

-Ask the user if they want to get another card.

-Once the user is done and no longer wants to draw any more cards, let the computer play. The computer should keep drawing cards unless their score goes over 16.

-Compare user and computer scores and see if it's a win, loss, or draw.

-Print out the player's and computer's final hand and their scores at the end of the game.

-After the game ends, ask the user if they'd like to play again. Clear the console for a fresh start.

You must be logged in to vote
1 reply
Comment options

Can someone help me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /