From 1ab7e6be7bf5fdb8b5f01a240f4982e906f88fd1 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Sat, 21 Jan 2017 23:15:56 -0700 Subject: [PATCH] Blackjack: removed more redundant code --- blackjack/blackjack.c | 4 ---- 1 file changed, 4 deletions(-) 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; - } } }