exercism-c/yacht/yacht.h
Blizzard Finnegan b92478b09c
Init commit
Leap, Difference of Squares, Grains, Collatz Conjecture, Queen Attack,
Darts, Hamming, and Space Age completed yesterday.

Binary and Linked List completed today.
2025-01-11 18:45:47 -05:00

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