-
Notifications
You must be signed in to change notification settings - Fork 284
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
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
I think so I can create it in c++ in near about 6 to 7 days |
thanks @mehabhalodiya for a great suggestion |
@UG-SEP Any updates on this? |
I can create it using Javascript. |
I've started working on it. |
6 tasks
@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 !
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, employshuffle
, 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.
The text was updated successfully, but these errors were encountered: