Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

Write a function called deal() which takes three arguments; a deck of cards, the number of cards to deal, and the number of players. deal() returns a tuple where the first element of the tuple is a list and the second element of the tuple is the list of cards which have not been dealt. The first part of the tuple gives a list of lists, where each list represents the hand of each player. It shows the cards that have been dealt to each player.

OpenStudy (anonymous):

For example, if 4 cards were dealt to two players the lists would look like the example shown below. ([ [('H', '2'), ('C', '6'), ('H', '10'), ('D', 'A')], [('D', '4'), ('H', '8'), ('H', 'Q'), ('C', '3')] ], [remaining deck])

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!