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){ 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");

Loading…
Cancel
Save