-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfillit.h
48 lines (40 loc) · 1.76 KB
/
fillit.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fillit.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: anieto <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/10/26 17:40:05 by anieto #+# #+# */
/* Updated: 2016/12/06 11:53:29 by wdebs ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FILLIT_H
# define FILLIT_H
# include <stdlib.h>
# include <unistd.h>
# include <fcntl.h>
# define BUF_SIZE 4096
int g_sizes;
int posit_check(char *str, int j);
int val_format(char **str);
int val_char(char **str);
int tet_check(char **str);
void print_square(char **m);
char **make_map(int size);
void free_map(char **map);
int smallest(int n);
void fillit_solve(char **tets);
int solve(char **tets, char **d, int place);
void letter_set(void);
void fill_grid(char **d, int coord[4][2], int piece);
int transfer(int dest[4][2], int raw_coord[4][2], char **d, int piece);
int check(char *tets, int yx[2], char **d, int piece);
int solve(char **tets, char **d, int piece);
void clear_piece(int piece, char **d);
int last_check(int dest[4][2], char **d);
void error(void);
int t_strlen(char *s);
char **tet_split(char *s);
char **fillit_read(char *file);
#endif