An Inovative game using playing cards built using python to play in command line
Firstly we need to Separate deck of cards into spades,diamonds,Hearts,Clubs.
creating a lists for spades diamonds hearts clubs
Keep diamonds aside
Based on the number of players we need to select number of lists ( if there are 2 players then need to select spades,clubs lists or clubs,hearts lists or hearts,spades lists if there are three players then we need to select all the three lists)
one player must be computer
initialise player score = 0 and computer score = 0
Start bidding Computer is the dealer too which means it needs to release one number from the diamond list for each round
After succesful completion of releasing one number from diamond list then
- player needs to release a card from his/her own list of elements
- computer also need to release a number from its own list of elements
if player number > computer number then player wins the diamond else computer wins the diamond ( in code winning a diamond is nothing but adding up the number which got released from diamond list ) to the score
After releasing a number from the list , the number should not present the list we need to use pop and who wins the diamond the number in diamond list should get pop from the diamond list and also should get added to the respective one's winning score list
After each successfull round the scores must be appended with the number from the diamond list
when the list becomes empty then the game is over
computer released 9 from diamond list player released 10 from club list computer released 9 from spade list
Then the number 9 must be pop from the spade list and number 10 must be pop from the club list and number 9 must be pop from the diamond list and 9 must be appended to player score