Movatterモバイル変換


[0]ホーム

URL:


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 inGeneral
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
@leocarrio
Comment options

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

@yyx2831
Comment options

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

这是最终作业的链接

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

@leocarrio
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.

@leocarrio
Comment options

That's the exercice

@moonwalk47
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
@leocarrio
Comment options

Can someone help me ?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
3 participants
@leocarrio@yyx2831@moonwalk47

[8]ページ先頭

©2009-2025 Movatter.jp