tty-solitaire/src/game.h

45 lines
1002 B
C
Raw Normal View History

2011-06-06 04:33:49 +00:00
#ifndef TTY_SOLITAIRE_GAME_H
#define TTY_SOLITAIRE_GAME_H
2011-06-06 03:42:23 +00:00
#include <stdbool.h>
#include "stack.h"
#include "deck.h"
#include "cursor.h"
#define NUMBER_OF_CARDS 52
2011-05-09 03:38:31 +00:00
#define STOCK_BEGIN_X 1
#define STOCK_BEGIN_Y 1
#define WASTE_PILE_BEGIN_X 9
#define WASTE_PILE_BEGIN_Y 1
#define FOUNDATION_BEGIN_Y 1
#define FOUNDATION_0_BEGIN_X 25
#define FOUNDATION_1_BEGIN_X 33
#define FOUNDATION_2_BEGIN_X 41
#define FOUNDATION_3_BEGIN_X 49
#define MANEUVRE_BEGIN_Y 9
#define MANEUVRE_0_BEGIN_X 1
#define MANEUVRE_1_BEGIN_X 9
#define MANEUVRE_2_BEGIN_X 17
#define MANEUVRE_3_BEGIN_X 25
#define MANEUVRE_4_BEGIN_X 33
#define MANEUVRE_5_BEGIN_X 41
#define MANEUVRE_6_BEGIN_X 49
struct deck *deck;
struct cursor *cursor;
2011-05-08 02:09:39 +00:00
bool maneuvre_stack(struct stack *);
2011-06-03 05:48:26 +00:00
bool valid_move(struct stack *, struct stack *);
2011-02-17 00:26:18 +00:00
void move_card(struct stack **, struct stack **);
void move_block(struct stack **, struct stack **, int);
2011-06-04 20:15:12 +00:00
void game_init();
2011-06-06 03:42:23 +00:00
bool game_won();
2011-06-04 20:15:12 +00:00
void game_end();
#endif