Question: Solve using Python 2. Write a program to play a very modified version of spades. The program will select two hands of 5 cards for
2. Write a program to play a very modified version of spades. The program will select two hands of 5 cards for a single player and the computer dealer. The hands should be chosen using a function and the random methods we discussed in class. Your function should check the cards to be sure that they have not been used in the other hand. If so, then another card will be chosen at random until a hand can be formed. After the second hand is dealt, all cards are available again. A winner of the game will be chosen based on the sum of all cards in the hand. The sum of the cards will be calculated as follows: 2, 3, 10face value acks 11 Queens = 12 Kings 13 Aces 14 The suit of the cards is used as a multiplier. Spades are worth 2 times the face value giving an advantage to any hands containing spades. All other suits are worth face value only
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
