affiche correctement la map avec les lettres mais la map est fausse donc erreur dans backtracking

This commit is contained in:
Hugo LAMY
2019-05-03 16:11:15 +02:00
8 changed files with 226 additions and 64 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/01 14:22:58 by hulamy ### ########.fr */
/* Updated: 2019/05/03 16:10:34 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -31,6 +31,7 @@ typedef struct s_fillist
int width;
int height;
int position;
char letter;
struct s_fillist *next;
} t_fillist;
@@ -44,11 +45,12 @@ void parse_input(char *input);
int check_file_errors(char *file);
int check_tetri_errors(char *tetri);
int check_tetri_errors_proxy(char *tetri);
int add_to_list(char *square, t_fillist **list);
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);
void print_map(unsigned int *tab, int width, int height);
void print_map(unsigned int *tab, int width, int height, char letter);
void print_final_map(t_fillist *list, int size);
#endif