2010-04-13 02:42:21 +00:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
|
|
|
#include "deck.h"
|
2011-02-06 02:15:21 +00:00
|
|
|
#include "cursor.h"
|
2010-04-13 02:42:21 +00:00
|
|
|
|
|
|
|
#define NUMBER_OF_CARDS 52
|
|
|
|
|
2011-02-06 05:44:45 +00:00
|
|
|
extern const char *program_name;
|
2010-04-20 04:10:42 +00:00
|
|
|
struct deck *deck;
|
2011-02-06 02:15:21 +00:00
|
|
|
struct cursor *cursor;
|
2010-04-20 04:10:42 +00:00
|
|
|
|
2011-02-06 02:45:24 +00:00
|
|
|
void set_stacks_initial_coordinates(struct deck *);
|
2010-04-13 02:42:21 +00:00
|
|
|
void fill_deck(struct deck *);
|
|
|
|
void shuffle_deck(struct deck *);
|
|
|
|
void deal_cards(struct deck *);
|
2010-04-13 04:07:00 +00:00
|
|
|
void greet_player();
|
2010-04-13 02:42:21 +00:00
|
|
|
void initialize_game();
|
|
|
|
void end_game();
|
|
|
|
|
|
|
|
#endif
|