Open mehabhalodiya opened 3 years ago
I think so I can create it in c++ in near about 6 to 7 days So assign me
thanks @mehabhalodiya for a great suggestion
@UG-SEP Any updates on this?
I can create it using Javascript. You can assign it to me.
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 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
@UG-SEP you have written the script in C++ ?
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.