tty-solitaire/src/deck.h

21 lines
405 B
C
Raw Normal View History

#ifndef DECK_H
#define DECK_H
#include "stack.h"
2011-06-03 05:48:26 +00:00
#define FOUNDATION_STACKS_NUMBER 4
#define MANEUVRE_STACKS_NUMBER 7
struct deck {
struct stack *stock;
2010-04-09 03:12:06 +00:00
struct stack *waste_pile;
2011-06-03 05:48:26 +00:00
struct stack *foundation[FOUNDATION_STACKS_NUMBER];
struct stack *maneuvre[MANEUVRE_STACKS_NUMBER];
};
void allocate_deck(struct deck **);
void initialize_deck(struct deck *);
2011-02-14 02:10:47 +00:00
void free_deck(struct deck *);
#endif