Few edits + BUG found on add_to_list with some tetriminoes

This commit is contained in:
Manzovince
2019-04-23 21:15:12 +02:00
parent 21c10a5787
commit f4492e2735
10 changed files with 66 additions and 11 deletions

View File

@@ -6,12 +6,16 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/12 22:29:45 by vmanzoni #+# #+# */
/* Updated: 2019/04/23 14:34:32 by vmanzoni ### ########.fr */
/* Updated: 2019/04/23 21:03:10 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
/*
** Function that initialize a int map equivalent to a square size*size
*/
unsigned int *initialize_map(int size)
{
unsigned int *map[0];
@@ -23,6 +27,10 @@ unsigned int *initialize_map(int size)
return (map);
}
/*
** Function that bruteforce with backtracking for smallest square
*/
int *get_smallest_square(t_fillist list, int size, unsigned int map[])
{
unsigned int mask;