Browse Source

refactoring: Konsolenausgabe der Karten nur noch via ASCII art

remotes/origin/stefan
fdai7472 11 months ago
parent
commit
8de1b3e47f
  1. 5
      src/main/c/Stefan/blackjack.c

5
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]);

Loading…
Cancel
Save