tty-solitaire/lib/game.h
2011-05-08 20:20:22 -03:00

44 lines
995 B
C

#ifndef GAME_H
#define GAME_H
#include "stack.h"
#include "deck.h"
#include "cursor.h"
#define NUMBER_OF_CARDS 52
#define MANEUVRE_STACKS_STARTING_Y 7
#define STOCK_STARTING_X 1
#define STOCK_STARTING_Y 1
#define WASTE_PILE_STARTING_X 9
#define WASTE_PILE_STARTING_Y 1
#define FOUNDATION_STARTING_Y 1
#define FOUNDATION_0_STARTING_X 25
#define FOUNDATION_1_STARTING_X 33
#define FOUNDATION_2_STARTING_X 41
#define FOUNDATION_3_STARTING_X 49
#define MANEUVRE_STARTING_Y 9
#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
struct deck *deck;
struct cursor *cursor;
bool valid_move(struct stack *, struct stack *);
bool maneuvre_stack(struct stack *);
void move_card(struct stack **, struct stack **);
void greet_player();
void initialize_game();
void end_game();
#endif