diff --git a/print_map_with_colors.c b/print_map_with_colors.c index 6eb4ea1..6a53edf 100644 --- a/print_map_with_colors.c +++ b/print_map_with_colors.c @@ -6,7 +6,7 @@ /* By: vmanzoni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/05/03 20:27:22 by vmanzoni #+# #+# */ -/* Updated: 2019/05/08 08:04:05 by vmanzoni ### ########.fr */ +/* Updated: 2019/05/08 09:02:39 by vmanzoni ### ########.fr */ /* */ /* ************************************************************************** */ @@ -31,7 +31,7 @@ void ft_putchar_color(char c, char color) write(1, MAG, 5); else if (color == 'C') write(1, CYN, 5); - else if (color == 'W') + else if (color == 'W' || !c) write(1, RESET, 5); ft_putchar(c); write(1, RESET, 5); diff --git a/samples/square b/samples/1square similarity index 100% rename from samples/square rename to samples/1square diff --git a/samples/26square b/samples/26square new file mode 100644 index 0000000..93fb532 --- /dev/null +++ b/samples/26square @@ -0,0 +1,129 @@ +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... diff --git a/samples/4square b/samples/4square new file mode 100644 index 0000000..ccf8d77 --- /dev/null +++ b/samples/4square @@ -0,0 +1,19 @@ +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +.... + +##.. +##.. +.... +....