Browse Source

refactoring: Jede Runde wird per Konsolenausgabe strukturiert

remotes/origin/stefan
fdai7472 11 months ago
parent
commit
62a8c6be3d
  1. 2
      src/main/c/Stefan/blackjack.c

2
src/main/c/Stefan/blackjack.c

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

Loading…
Cancel
Save