Skip to content

Commit 9115773

Browse files
authored
update tombstone
1 parent 9cdffb1 commit 9115773

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

Chapter16/carddeck_2b.c

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
// carddeck_2b.c
22
// Chapter 16
3-
// <book title>
3+
// Learn C Programming
44
//
5-
// carddeck_2a.c builds upon carddeck_1a.c.
5+
// carddeck_2b.c builds upon carddeck_2a.c.
66
// In this version, we add the hand structure using
77
// individual pointer variables to Cards.
88
//
9-
// compile with cc carddeck_2b.c -o carddeck_2b -Wall -Werror -std-c11
9+
// compile with
10+
//
11+
// cc carddeck_2b.c -o carddeck_2b -Wall -Werror -std-c11
1012
//
1113

1214

@@ -20,15 +22,17 @@
2022
// of literals; when you need to change these, they are applied
2123
// everywhere.
2224
//
23-
const int kCardsInDeck = 52; // For now, 52 cards in a deck. This will change
24-
// depending upon the card game and the # of wild
25-
// cards, etc.
26-
const int kCardsInSuit = 13; // For now, kCardsInDeck / 4. This will change
27-
// depending upon the card game.
28-
const int kCardsInHand = 5; // For now, 5 cards dealt for each hange. This will
29-
// change depending upon the card game.
30-
const int kNumHands = 4; // For now, for hands per "table". This will change
31-
// depending on the game we want to implement.
25+
enum {
26+
kCardsInDeck = 52, // For now, 52 cards in a deck. This will change
27+
// depending upon the card game and the # of wild
28+
// cards, etc.
29+
kCardsInSuit = 13, // For now, kCardsInDeck / 4. This will change
30+
// depending upon the card game.
31+
kCardsInHand = 5, // For now, 5 cards dealt for each hange. This will
32+
// change depending upon the card game.
33+
kNumHands = 4 // For now, for hands per "table". This will change
34+
// depending on the game we want to implement.
35+
};
3236

3337
const bool kWildCard = true;
3438
const bool kNotWildCard = false;

0 commit comments

Comments
 (0)