From 8de1b3e47f4d358b5e62eb7f02138102c1181961 Mon Sep 17 00:00:00 2001 From: fdai7472 Date: Tue, 6 Feb 2024 14:38:16 +0100 Subject: [PATCH] refactoring: Konsolenausgabe der Karten nur noch via ASCII art --- src/main/c/Stefan/blackjack.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/c/Stefan/blackjack.c b/src/main/c/Stefan/blackjack.c index c12ad2b..c358caf 100644 --- a/src/main/c/Stefan/blackjack.c +++ b/src/main/c/Stefan/blackjack.c @@ -97,7 +97,7 @@ int playBJ(int bet, int balance){ if(dealerCardsArray){ dealerCardsArray[0] = getRandCard(0); - printf("computer rand card: %d\n", dealerCardsArray[0]); + printf("\nDealer's first card: \n"); generateCardAscii(dealerCardsArray[0]); // Array mit max 10 Karten anlegen @@ -106,10 +106,9 @@ int playBJ(int bet, int balance){ if(userCardsArray){ userCardsArray[0] = getRandCard(1); - printf("user rand card: %d\n", userCardsArray[0]); + printf("\nYour first two cards: \n"); generateCardAscii(userCardsArray[0]); userCardsArray[1] = getRandCard(2); - printf("user rand card: %d\n", userCardsArray[1]); generateCardAscii(userCardsArray[1]);