Skip to content

Instantly share code, notes, and snippets.

@ddavison
Created March 10, 2014 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddavison/9465455 to your computer and use it in GitHub Desktop.
Save ddavison/9465455 to your computer and use it in GitHub Desktop.
/**
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