well, nothing more fun than taking a ROJOhound example and adding some flashy animation...
I made it create a whole deck, shuffle the cards, and place them face down.
click a face down card to deal it to your hand. The hand automatically sorts and fans out the cards based on how many are in the hand.
to play a card, drag it out of your hand and it will fly up to the discard pile.
when you run out of cards, click the Build New Deck button...
https://www.rieperts.com/games/forum/ArrangeCards.capx