RosettaCodeData/Task/Playing-cards/00DESCRIPTION

14 lines
497 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
;Task:
Create a data structure and the associated methods to define and manipulate a deck of   [[wp:Playing-cards#Anglo-American-French|playing cards]].
2015-02-20 00:35:01 -05:00
The deck should contain 52 unique cards.
2016-12-05 22:15:40 +01:00
The methods must include the ability to:
:::*   make a new deck
:::*   shuffle (randomize) the deck
:::*   deal from the deck
:::*   print the current contents of a deck
2015-02-20 00:35:01 -05:00
Each card must have a pip value and a suit value which constitute the unique value of the card.
2016-12-05 22:15:40 +01:00
<br><br>