From 12fc9b3108c8b86c080bcf0af17b7fe337aed7b6 Mon Sep 17 00:00:00 2001 From: Gregory Date: Thu, 22 Dec 2016 05:49:27 +0200 Subject: [PATCH] wrong output for 1 ttrmn --- inc/fillit.h | 2 +- src/dancing_links.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/inc/fillit.h b/inc/fillit.h index f26a3f0..c6d3ce9 100644 --- a/inc/fillit.h +++ b/inc/fillit.h @@ -107,6 +107,6 @@ int get_amount(char **ttr); unsigned int ft_sqrt_ceil(unsigned int num); -void fill_map(char *map, int size, t_node *ttr, int letter); +void fill_map(char *map, int size, t_node *ttr, int letter); #endif diff --git a/src/dancing_links.c b/src/dancing_links.c index 877c7ec..fbb962e 100644 --- a/src/dancing_links.c +++ b/src/dancing_links.c @@ -205,6 +205,11 @@ void fill_map(char *map, int size, t_node *ttr, int letter) void print_solution(t_list *sol, t_node *root, int amount) { + // doesn't work for one ttr + // if ttr has dimensions 3x2 + // output square must be 3x3 + // but func print 4x4 + char *map; int i; int map_size;