The 'six' card was being print wrong.
This commit is contained in:
parent
459dc12549
commit
f7ee503596
@ -6,25 +6,25 @@ void print_card(struct card *card) {
|
|||||||
case NO_FACE: printf("No face "); break;
|
case NO_FACE: printf("No face "); break;
|
||||||
case COVERED: printf("Covered "); break;
|
case COVERED: printf("Covered "); break;
|
||||||
case EXPOSED: printf("Exposed "); break;
|
case EXPOSED: printf("Exposed "); break;
|
||||||
default : printf("?");
|
default : printf("? ");
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (card->value) {
|
switch (card->value) {
|
||||||
case NO_VALUE: printf(", no value "); break;
|
case NO_VALUE: printf(", no value "); break;
|
||||||
case TWO : printf("two"); break;
|
case TWO : printf("two "); break;
|
||||||
case THREE : printf("three "); break;
|
case THREE : printf("three "); break;
|
||||||
case FOUR : printf("four "); break;
|
case FOUR : printf("four "); break;
|
||||||
case FIVE : printf("five"); break;
|
case FIVE : printf("five "); break;
|
||||||
case SIX : printf("six"); break;
|
case SIX : printf("six "); break;
|
||||||
case SEVEN : printf("seven"); break;
|
case SEVEN : printf("seven "); break;
|
||||||
case EIGHT : printf("eight"); break;
|
case EIGHT : printf("eight "); break;
|
||||||
case NINE : printf("nine"); break;
|
case NINE : printf("nine "); break;
|
||||||
case TEN : printf("ten"); break;
|
case TEN : printf("ten "); break;
|
||||||
case JACK : printf("jack"); break;
|
case JACK : printf("jack "); break;
|
||||||
case QUEEN : printf("queen "); break;
|
case QUEEN : printf("queen "); break;
|
||||||
case KING : printf("king "); break;
|
case KING : printf("king "); break;
|
||||||
case ACE : printf("ace "); break;
|
case ACE : printf("ace "); break;
|
||||||
default : printf("?");
|
default : printf("? ");
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (card->suit) {
|
switch (card->suit) {
|
||||||
|
Loading…
Reference in New Issue
Block a user