2010-04-13 02:42:21 +00:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
|
|
|
#include "deck.h"
|
|
|
|
|
|
|
|
#define NUMBER_OF_CARDS 52
|
|
|
|
|
|
|
|
#define STOCK_STARTING_X 1
|
|
|
|
#define STOCK_STARTING_Y 1
|
2010-04-20 00:58:31 +00:00
|
|
|
|
2010-04-13 02:42:21 +00:00
|
|
|
#define WASTE_PILE_STARTING_X 9
|
|
|
|
#define WASTE_PILE_STARTING_Y 1
|
2010-04-20 00:58:31 +00:00
|
|
|
|
|
|
|
#define FOUNDATION_STARTING_Y 1
|
2010-04-13 02:42:21 +00:00
|
|
|
#define FOUNDATION_0_STARTING_X 25
|
|
|
|
#define FOUNDATION_1_STARTING_X 33
|
|
|
|
#define FOUNDATION_2_STARTING_X 41
|
|
|
|
#define FOUNDATION_3_STARTING_X 49
|
2010-04-20 00:58:31 +00:00
|
|
|
|
|
|
|
#define MANEUVRE_STARTING_Y 9
|
2010-04-13 02:42:21 +00:00
|
|
|
#define MANEUVRE_0_STARTING_X 1
|
|
|
|
#define MANEUVRE_1_STARTING_X 9
|
|
|
|
#define MANEUVRE_2_STARTING_X 17
|
|
|
|
#define MANEUVRE_3_STARTING_X 25
|
|
|
|
#define MANEUVRE_4_STARTING_X 33
|
|
|
|
#define MANEUVRE_5_STARTING_X 41
|
|
|
|
#define MANEUVRE_6_STARTING_X 49
|
|
|
|
|
2010-04-20 04:10:42 +00:00
|
|
|
struct deck *deck;
|
|
|
|
|
2010-04-13 02:42:21 +00:00
|
|
|
void set_stacks_coordinates(struct deck *);
|
|
|
|
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();
|
2010-04-13 04:07:00 +00:00
|
|
|
void prepare_game(struct deck **);
|
2010-04-13 02:42:21 +00:00
|
|
|
void end_game();
|
|
|
|
|
|
|
|
#endif
|