|
@ -6,8 +6,7 @@ |
|
|
|
|
|
|
|
|
int blackjack(){ |
|
|
int blackjack(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("Welcome to Blackjack \n\n"); |
|
|
|
|
|
|
|
|
welcomeMessageBJ(); |
|
|
|
|
|
|
|
|
bool exit = false; |
|
|
bool exit = false; |
|
|
bool *exitPtr = &exit; |
|
|
bool *exitPtr = &exit; |
|
@ -227,4 +226,17 @@ int calculateWinnings(bool blackjack, int bet){ |
|
|
} |
|
|
} |
|
|
printf("Du hast %d gewonnen!\n", bet); |
|
|
printf("Du hast %d gewonnen!\n", bet); |
|
|
return 2 * bet; |
|
|
return 2 * bet; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void welcomeMessageBJ(){ |
|
|
|
|
|
|
|
|
|
|
|
printf("Willkommen zu..\n\n" |
|
|
|
|
|
" _ _ _ _ _ \n" |
|
|
|
|
|
"| | | | | | (_) | | \n" |
|
|
|
|
|
"| |__ | | __ _ ___| | ___ __ _ ___| | __\n" |
|
|
|
|
|
"| '_ \\| |/ _` |/ __| |/ / |/ _` |/ __| |/ /\n" |
|
|
|
|
|
"| |_) | | (_| | (__| <| | (_| | (__| < \n" |
|
|
|
|
|
"|_.__/|_|\\__,_|\\___|_|\\_\\ |\\__,_|\\___|_|\\_\\\n" |
|
|
|
|
|
" _/ | \n" |
|
|
|
|
|
" |__/ \n\n"); |
|
|
} |
|
|
} |