From 62a8c6be3d66fa865a19596bef393fa9d334d010 Mon Sep 17 00:00:00 2001 From: fdai7472 Date: Tue, 6 Feb 2024 14:54:14 +0100 Subject: [PATCH] refactoring: Jede Runde wird per Konsolenausgabe strukturiert --- src/main/c/Stefan/blackjack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/c/Stefan/blackjack.c b/src/main/c/Stefan/blackjack.c index 0b376f2..4849073 100644 --- a/src/main/c/Stefan/blackjack.c +++ b/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");