Created
March 10, 2014 14:02
-
-
Save ddavison/9465455 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
/** | |
Main File | |
**/ | |
#include "Card.h" | |
#include <vector> | |
using namespace Cards; | |
void shuffle(std::vector<Card> deck) { | |
for (int suit = 0; suit < 3; suit++) { | |
// for each suit... | |
for (int value = 0; value < 51; value++) { | |
// for each value | |
Card *card = new Card(static_cast<Suit>(suit), static_cast<Value>(value)); | |
printf("%s", card->m_cGetSuit()); | |
} | |
} | |
} | |
int main() { | |
std::vector<Card> deck; | |
shuffle(deck); | |
return EXIT_SUCCESS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment