Leap, Difference of Squares, Grains, Collatz Conjecture, Queen Attack, Darts, Hamming, and Space Age completed yesterday. Binary and Linked List completed today.
25 lines
311 B
C
25 lines
311 B
C
#ifndef YACHT_H
|
|
#define YACHT_H
|
|
|
|
typedef enum {
|
|
ONES,
|
|
TWOS,
|
|
THREES,
|
|
FOURS,
|
|
FIVES,
|
|
SIXES,
|
|
FULL_HOUSE,
|
|
FOUR_OF_A_KIND,
|
|
LITTLE_STRAIGHT,
|
|
BIG_STRAIGHT,
|
|
CHOICE,
|
|
YACHT
|
|
} category_t;
|
|
|
|
typedef struct {
|
|
int faces[5];
|
|
} dice_t;
|
|
|
|
int score(dice_t dice, category_t category);
|
|
|
|
#endif
|