better cards

This commit is contained in:
Mylloon 2021-03-25 14:41:07 +01:00
parent 7460f3b51b
commit 0c41a7a4d1

View file

@ -107,6 +107,7 @@ void draw_card(int value, char couleur) {
printf("| |\n"); printf("| |\n");
printf("| |\n"); printf("| |\n");
printf("| |\n"); printf("| |\n");
printf("| |\n");
printf("| A %c|\n",couleur); printf("| A %c|\n",couleur);
printf(" -----------\n\n"); printf(" -----------\n\n");
} else if (value == 11 || value == 24 || value == 37 || value == 50) { } 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("| |\n"); printf("| |\n");
printf("| |\n");
printf("| J %c|\n",couleur); printf("| J %c|\n",couleur);
printf(" -----------\n\n"); printf(" -----------\n\n");
} else if (value == 12 || value == 25 || value == 38 || value == 51) { } 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("| |\n"); printf("| |\n");
printf("| |\n");
printf("| Q %c|\n",couleur); printf("| Q %c|\n",couleur);
printf(" -----------\n\n"); printf(" -----------\n\n");
} else if (value == 13 || value == 26 || value == 39 || value == 52) { } 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("| |\n"); printf("| |\n");
printf("| |\n");
printf("| K %c|\n",couleur); printf("| K %c|\n",couleur);
printf(" -----------\n\n"); printf(" -----------\n\n");
} else { } else {
@ -147,6 +151,7 @@ void draw_card(int value, char couleur) {
printf("| |\n"); printf("| |\n");
printf("| |\n"); printf("| |\n");
printf("| |\n"); printf("| |\n");
printf("| |\n");
printf("| %2d %c|\n",real_value(value),couleur); printf("| %2d %c|\n",real_value(value),couleur);
printf(" ------------\n\n"); printf(" ------------\n\n");
} }