|
@ -14,6 +14,7 @@ int blackjack(){ |
|
|
|
|
|
|
|
|
while(balance > 0){ |
|
|
while(balance > 0){ |
|
|
printf("Aktuelles Guthaben: %d\n", balance); |
|
|
printf("Aktuelles Guthaben: %d\n", balance); |
|
|
|
|
|
printf("-----------------------------\n"); |
|
|
int bet = getBetBJ(balance, exitPtr); |
|
|
int bet = getBetBJ(balance, exitPtr); |
|
|
// Abbruchbedingung, um das Blackjack zu verlassen |
|
|
// Abbruchbedingung, um das Blackjack zu verlassen |
|
|
if(exit) { |
|
|
if(exit) { |
|
@ -200,6 +201,7 @@ bool hit(){ |
|
|
|
|
|
|
|
|
if(answer != 1){ |
|
|
if(answer != 1){ |
|
|
printf("You stand.\n\n"); |
|
|
printf("You stand.\n\n"); |
|
|
|
|
|
printf("-----------------------------\n"); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
printf("You hit.\n\n"); |
|
|
printf("You hit.\n\n"); |
|
|