Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blackjack #770

Open
mehabhalodiya opened this issue Jun 25, 2021 · 7 comments · Fixed by #986
Open

Blackjack #770

mehabhalodiya opened this issue Jun 25, 2021 · 7 comments · Fixed by #986
Assignees
Labels
C++ good first issue This issue is good for first timers Javascript 🟧 Level3 This issue will be considered as level 3 issue for LGM-SOC 21.Points will be 25. LGMSOC21 This issue will be considered for LGM-SOC 21 Python 🤩 Up for Grab This issue will is not assigned ! Grab It !

Comments

@mehabhalodiya
Copy link
Contributor

Description

While building the game, one will explore a few handy Python concepts, such as object-oriented programming using classes and how to manage a game loop.

You have to use Python's random library, which has various functions used in generating randomness. In particular, employ shuffle, which takes any list and returns it in random order, to shuffle our deck of cards.

Initially, you can begin by defining the classes that will be used in order to separate out different aspects of the game of blackjack. You will model three of the components of the game:

  • Card: A basic playing card. The card belongs to a suit (hearts, diamonds, spades, or clubs) and is worth a certain value.
  • Deck: A collection of cards. The deck shrinks as cards are drawn and contains 52 unique cards.
  • Hand: Each player's assigned cards. A hand is what defines each player's score and thus who wins.
  • Chips: To keep track.

Further, create all the list of functions which perform various actions and finally, the game loop!

Aim

One will get proper understanding of OOPS (Object-Oriented Programming System) by implementing this type of script as it contains classes and functions from scratch.

@mehabhalodiya mehabhalodiya added good first issue This issue is good for first timers LGMSOC21 This issue will be considered for LGM-SOC 21 🤩 Up for Grab This issue will is not assigned ! Grab It ! Python 🟧 Level3 This issue will be considered as level 3 issue for LGM-SOC 21.Points will be 25. labels Jun 25, 2021
@UG-SEP
Copy link
Contributor

UG-SEP commented Jun 26, 2021

I think so I can create it in c++ in near about 6 to 7 days
So assign me

@UG-SEP
Copy link
Contributor

UG-SEP commented Jun 26, 2021

thanks @mehabhalodiya for a great suggestion

@mehabhalodiya mehabhalodiya changed the title Blackjack in python Blackjack Jun 26, 2021
@mehabhalodiya
Copy link
Contributor Author

@UG-SEP Any updates on this?

@TheArushiSingh
Copy link
Contributor

I can create it using Javascript.
You can assign it to me.

@TheArushiSingh
Copy link
Contributor

I've started working on it.
html and css part is done. Javascript portion might take 2-3 days
I'll update once I complete that.

@UG-SEP
Copy link
Contributor

UG-SEP commented Jul 2, 2021

@UG-SEP Any updates on this?

yes it is nearby complete just give me 1 day
sorry for the delay but I have started working on the project tomorrow because of creating the project of issue no: #829

@mehabhalodiya
Copy link
Contributor Author

@UG-SEP you have written the script in C++ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ good first issue This issue is good for first timers Javascript 🟧 Level3 This issue will be considered as level 3 issue for LGM-SOC 21.Points will be 25. LGMSOC21 This issue will be considered for LGM-SOC 21 Python 🤩 Up for Grab This issue will is not assigned ! Grab It !
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants