refactor - removed some magic numbers
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#define DIAMONDS 1
|
||||
#define CLUBS 2
|
||||
#define SPADES 3
|
||||
#define NUM_SUITS 4
|
||||
|
||||
// Card ranks
|
||||
#define TWO 0
|
||||
@@ -25,6 +26,8 @@
|
||||
#define QUEEN 10
|
||||
#define KING 11
|
||||
#define ACE 12
|
||||
#define NUM_RANKS 13
|
||||
#define RANK_OFFSET 2 // Because the first rank is 2 and ranks start at 0
|
||||
|
||||
// Card types
|
||||
typedef struct
|
||||
|
||||
Reference in New Issue
Block a user