Talk:Playing cards

From Rosetta Code

clarification ?[edit]

I would appreciate a little clarification:

Deal what? (A hand? Cards face up? If a hand, how many hands? How many cards?)

'Print the contents of the deck'. Does this mean the cards that are still left (not yet dealt out) ? Gerard Schildberger 03:01, 21 January 2011 (UTC)

The examples on the page seem to "deal" one card -- that is, remove one card from the deck and return it. You are right about printing the contents of the deck. In the future if you are confused about a task like this you should try to figure out what the existing examples do. If the examples do different things then note it on the talk page. If the examples follow a pattern then copy that pattern for your example and change the task description if you think it is unclear. Be careful, though. Sometimes adding too many minor details gets away from the spirit of the task. --Mwn3d 04:14, 21 January 2011 (UTC)

Rust example[edit]

The Rust example I've written appears to be unneedlessly (if that is a word) verbose. A large part of the code is taken up by the functions that print out the card names. Any ideas on how I could improve it? Wei2912 (talk) 17:39, 8 June 2014 (UTC)