From 7460f3b51b2d44de652e51de2368d8a5f3ceaa38 Mon Sep 17 00:00:00 2001 From: Anri Kennel Date: Thu, 25 Mar 2021 14:24:50 +0100 Subject: [PATCH 1/3] ajout exception pour les .exe --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 07dccb3..b8de4e4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ pdf/* !pdf/pdf.pdf .vscode blackjack +*.exe From 0c41a7a4d11a04d49640075e6a0e6f838e6d7d37 Mon Sep 17 00:00:00 2001 From: Anri Kennel Date: Thu, 25 Mar 2021 14:41:07 +0100 Subject: [PATCH 2/3] better cards --- blackjack.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blackjack.c b/blackjack.c index 5c1aa44..1cac193 100644 --- a/blackjack.c +++ b/blackjack.c @@ -107,6 +107,7 @@ void draw_card(int value, char couleur) { printf("| |\n"); printf("| |\n"); printf("| |\n"); + printf("| |\n"); printf("| A %c|\n",couleur); printf(" -----------\n\n"); } else if (value == 11 || value == 24 || value == 37 || value == 50) { @@ -117,6 +118,7 @@ void draw_card(int value, char couleur) { printf("| |\n"); printf("| |\n"); printf("| |\n"); + printf("| |\n"); printf("| J %c|\n",couleur); printf(" -----------\n\n"); } else if (value == 12 || value == 25 || value == 38 || value == 51) { @@ -127,6 +129,7 @@ void draw_card(int value, char couleur) { printf("| |\n"); printf("| |\n"); printf("| |\n"); + printf("| |\n"); printf("| Q %c|\n",couleur); printf(" -----------\n\n"); } else if (value == 13 || value == 26 || value == 39 || value == 52) { @@ -137,6 +140,7 @@ void draw_card(int value, char couleur) { printf("| |\n"); printf("| |\n"); printf("| |\n"); + printf("| |\n"); printf("| K %c|\n",couleur); printf(" -----------\n\n"); } else { @@ -147,6 +151,7 @@ void draw_card(int value, char couleur) { printf("| |\n"); printf("| |\n"); printf("| |\n"); + printf("| |\n"); printf("| %2d %c|\n",real_value(value),couleur); printf(" ------------\n\n"); } From 429115e21408a93b36c864b1611a799a393e482b Mon Sep 17 00:00:00 2001 From: Anri Kennel Date: Thu, 25 Mar 2021 14:49:04 +0100 Subject: [PATCH 3/3] fix waiting time after choice for linux --- blackjack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blackjack.c b/blackjack.c index 1cac193..537f6fd 100644 --- a/blackjack.c +++ b/blackjack.c @@ -331,6 +331,7 @@ int main() { printf("\n"); printf("You decided to keep your current values. You can no longer have more cards. Your final score is : %d\n", sum1); } + if(isWindows() == 1) getchar(); waitUser(); clearUserScreen(); @@ -398,6 +399,7 @@ int main() { printf("\n"); printf("You decided to keep your current values. You can no longer have more cards. Your final score is : %d\n", sum2); } + if(isWindows() == 1) getchar(); waitUser(); clearUserScreen();