-
Notifications
You must be signed in to change notification settings - Fork 0
/
filler.h
71 lines (58 loc) · 1.66 KB
/
filler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* filler.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mesafi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/13 22:31:54 by mesafi #+# #+# */
/* Updated: 2019/11/20 14:56:47 by mesafi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FILLER_H
/*
** Definitions
*/
# define FILLER_H
# define S_SIGN(S) (S == 'O' ? 'X' : 'O')
/*
** Includes
*/
# include "libft/libft.h"
/*
** Structures
*/
typedef struct s_cord
{
int line;
int column;
} t_cord;
typedef struct s_plot
{
char value;
int score;
} t_plot;
typedef struct s_fill
{
char player;
t_plot **map;
int width;
int height;
t_queue queue;
t_cord *token;
int units;
t_stack scope;
t_cord result;
int score;
} t_fill;
/*
** Functions Prototypes
*/
int map_reader(t_fill *data);
int player_concerned(t_fill *data);
int obtain_token(t_fill *data);
void make_heatmap(t_fill *data);
void find_out(t_fill *data);
int error_handler(t_fill *data, int map_opt,
int token_opt, int respond);
#endif