diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 5c5092d..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/f_handle_errors.c b/f_handle_errors.c index 74ff957..2746f4a 100644 --- a/f_handle_errors.c +++ b/f_handle_errors.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* handle_errors.c :+: :+: :+: */ +/* f_handle_errors.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: vmanzoni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/03/01 13:29:05 by vmanzoni #+# #+# */ -/* Updated: 2019/05/28 19:35:38 by hulamy ### ########.fr */ +/* Updated: 2019/05/29 13:23:02 by vmanzoni ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/fillit.h b/fillit.h index 17a4f8d..a73a692 100644 --- a/fillit.h +++ b/fillit.h @@ -6,7 +6,7 @@ /* By: vmanzoni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/03/01 13:34:46 by vmanzoni #+# #+# */ -/* Updated: 2019/05/29 13:09:41 by vmanzoni ### ########.fr */ +/* Updated: 2019/05/29 13:31:37 by vmanzoni ### ########.fr */ /* */ /* ************************************************************************** */ @@ -34,6 +34,10 @@ #define CYN "\x1B[36m" #define RESET "\x1B[0m" +/* +** Color for full block tetriminos when printing colored map +** (don't forget to comment all #define COLOR above) +*/ //#define RED "\e[41m" //#define GRN "\e[42m" //#define YEL "\e[43m" @@ -52,12 +56,12 @@ ** rank : position de 1 a 32 dans l'int du tableau d'int (position % 32) ** num : memorise dans quel int du tableau on se trouve (position / 32) ** test : -** letter : -** dope : -** memory : -** same : -** next : -** start : +** letter : letter of the tetrimino for printing final map +** dope : flags for details, optimisation, printing and error +** memory : positions already tested by a tetrimino in bitwise +** same : pointer to previous identical tetrimino +** next : pointer to next tetrimino +** start : pointer to first tetrimino of input file */ typedef struct s_fillist { diff --git a/libft b/libft deleted file mode 120000 index 7d1e3da..0000000 --- a/libft +++ /dev/null @@ -1 +0,0 @@ -../03_libft \ No newline at end of file diff --git a/main.c b/main.c index f03c94d..5cf1d0c 100644 --- a/main.c +++ b/main.c @@ -6,14 +6,14 @@ /* By: vmanzoni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/02/12 13:20:48 by vmanzoni #+# #+# */ -/* Updated: 2019/05/29 13:12:03 by vmanzoni ### ########.fr */ +/* Updated: 2019/05/29 13:27:14 by vmanzoni ### ########.fr */ /* */ /* ************************************************************************** */ #include "fillit.h" /* -** function that put the flags for bonus into a tab of int +** Function that put the flags for bonus into a tab of int ** ** d : debug print (print the map during the backtracking) ** o : optimisation ultra fast but with some errors still @@ -45,7 +45,7 @@ int *create_dope(char *av, int mdp) } /* -** function that check if the password is good to unlock the flags +** Function that check if the password is good to unlock the flags */ int is_mdp(int ac, char **av) @@ -67,7 +67,7 @@ int is_mdp(int ac, char **av) } /* -** main function +** Main function */ int main(int ac, char **av) @@ -82,9 +82,6 @@ int main(int ac, char **av) dope = create_dope(av[3], (mdp = is_mdp(ac, av))); if (ac == 2 || mdp) { -// ft_putnbrendl(size); -// print_final_map(list, size, 1); // DEBUG -// print_final_map(list, size, 0); // DEBUG if (!(input = read_file(av[1]))) print_error(dope[3] ? "error: Could not read file.\n" : "error\n"); check_file_errors(input, dope);