Created
September 18, 2013 22:35
-
-
Save GrantSchiller/6616704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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