2011-06-06 04:33:49 +00:00
|
|
|
#ifndef TTY_SOLITAIRE_DECK_H
|
|
|
|
#define TTY_SOLITAIRE_DECK_H
|
2010-04-05 07:33:10 +00:00
|
|
|
|
|
|
|
#include "stack.h"
|
|
|
|
|
2011-06-03 05:48:26 +00:00
|
|
|
#define FOUNDATION_STACKS_NUMBER 4
|
|
|
|
#define MANEUVRE_STACKS_NUMBER 7
|
|
|
|
|
2010-04-05 07:33:10 +00:00
|
|
|
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];
|
2010-04-05 07:33:10 +00:00
|
|
|
};
|
|
|
|
|
2011-06-06 05:04:03 +00:00
|
|
|
void deck_malloc(struct deck **);
|
|
|
|
void deck_init(struct deck *);
|
|
|
|
void deck_free(struct deck *);
|
2010-04-05 07:33:10 +00:00
|
|
|
|
|
|
|
#endif
|