diff --git a/blackjack/blackjack.c b/blackjack/blackjack.c index 2063fc2..533c823 100644 --- a/blackjack/blackjack.c +++ b/blackjack/blackjack.c @@ -33,7 +33,6 @@ int main (int argc, char *argv[]) return 0; } -// Add a starting position. I can have a variable that simply means "continue drawing/printing cards from here" void print_deck(int *deckOfCards){ int i; @@ -47,15 +46,12 @@ void shuffel (int *array){ int i, rn, a , tmp; rn = rand(); - printf("%d\n", rn); for (i=CARD_MAX; i >= CARD_MAX/CARD_MAX ;i--){ - if (i != 0){ a = rn % i; tmp = array[a]; array[a] = array[i]; array[i] = tmp; - } } }