Skip to content

Instantly share code, notes, and snippets.

@cecimerelo
Last active January 8, 2017 11:08
Show Gist options
  • Save cecimerelo/43eb5ec08361a4a411504399a722dc05 to your computer and use it in GitHub Desktop.
Save cecimerelo/43eb5ec08361a4a411504399a722dc05 to your computer and use it in GitHub Desktop.

PLAYING CARDS


Here we have the code of the program. <((1,2,3,4,5,6,7,8,9,10,'J','Q','K') X ("♠","♥","♦","♣")).roll>

<((1,2,3,4,5,6,7,8,9,10,'J','Q','K') X ("♠","♥","♦","♣")).pick(52)>

<roll> is used for picking any card randomly.

<pick(52)> is used for shuffeling all the deck of cards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment