search_map a la norme

This commit is contained in:
Hugo LAMY
2019-05-17 17:13:31 +02:00
parent e5aea30023
commit 94c0e5d57f
4 changed files with 59 additions and 118 deletions

View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/01 13:34:46 by vmanzoni #+# #+# */
/* Updated: 2019/05/16 15:31:15 by hulamy ### ########.fr */
/* Updated: 2019/05/17 17:03:35 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -44,6 +44,9 @@ typedef struct s_fillist
int width;
int height;
int position;
int place;
int rank;
int num;
int test;
char letter;
struct s_fillist *next;
@@ -64,7 +67,7 @@ int add_to_list(char *square, t_fillist **list, char letter);
void fill_list(char line[], t_fillist *list);
void print_bits(unsigned int bits, int size); //TO DELETE BEFORE EVAL
void print_tetri(unsigned int bits, int size); //TO DELETE BEFORE EVAL
void search_map(t_fillist *list);
int search_map(t_fillist *list);
void print_map(unsigned int *tab, int width, int height, char letter);
void print_final_map(t_fillist *list, int size);
void ft_put_tetri_color(char c);