Skip to content

Commit dbb974f

Browse files
committed
Add dh_card_null
1 parent 8bbaacb commit dbb974f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deckhandler.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ const struct dh_card dh_card_back = {
4848
.suit = -1,
4949
};
5050

51+
const struct dh_card dh_card_null = {
52+
.face_val = -2,
53+
.suit = -2,
54+
};
55+
5156
void dh_pcg_srand(uint64_t initstate, uint64_t initseq) {
5257
pcg32_srandom_r(&rng, initstate, initseq);
5358
return;

deckhandler.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ struct dh_card {
6262
};
6363

6464
extern const struct dh_card dh_card_back;
65+
extern const struct dh_card dh_card_null;
6566

6667
/**
6768
* @struct dh_deck

0 commit comments

Comments
 (0)