Skip to content

Instantly share code, notes, and snippets.

@GrantSchiller
Created September 18, 2013 22:35
Show Gist options
  • Save GrantSchiller/6616704 to your computer and use it in GitHub Desktop.
Save GrantSchiller/6616704 to your computer and use it in GitHub Desktop.
initialize Deck class
Deck shuffle method
Has array of all cards
Makes new array of cards and appends random index value of cards in former array into new array
Deck removecard method
Pop a single card from the array of all cards
Deck givecard method
Must designate player target
Will ultimately add the card to an array of cards that the player has
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment