2010-04-05 07:33:10 +00:00
|
|
|
#ifndef DECK_H
|
|
|
|
#define DECK_H
|
|
|
|
|
|
|
|
#include "stack.h"
|
|
|
|
|
2010-04-07 01:52:00 +00:00
|
|
|
#define NUMBER_OF_CARDS 52
|
|
|
|
|
2010-04-05 07:33:10 +00:00
|
|
|
struct deck {
|
|
|
|
struct stack *stock;
|
|
|
|
|
|
|
|
struct stack *foundation_0;
|
|
|
|
struct stack *foundation_1;
|
|
|
|
struct stack *foundation_2;
|
|
|
|
struct stack *foundation_3;
|
|
|
|
|
|
|
|
struct stack *maneuvre_0;
|
|
|
|
struct stack *maneuvre_1;
|
|
|
|
struct stack *maneuvre_2;
|
|
|
|
struct stack *maneuvre_3;
|
|
|
|
struct stack *maneuvre_4;
|
|
|
|
struct stack *maneuvre_5;
|
|
|
|
struct stack *maneuvre_6;
|
|
|
|
};
|
|
|
|
|
|
|
|
void allocate_deck(struct deck **);
|
|
|
|
void initialize_deck(struct deck *);
|
2010-04-07 00:59:21 +00:00
|
|
|
void delete_deck(struct deck *);
|
2010-04-07 01:52:00 +00:00
|
|
|
void fill_deck(struct deck *);
|
2010-04-05 07:33:10 +00:00
|
|
|
|
|
|
|
#endif
|