README and few little corrections on code readability

This commit is contained in:
Manzovince
2019-05-29 15:42:31 +02:00
parent 0236573b6d
commit 7a07d84d6c
4 changed files with 11 additions and 9 deletions

View File

@@ -18,5 +18,7 @@ Le but de ce projet est dagencer les Tetriminos entre eux pour former le plus
## BONUS
- [x] Best error handler (more details on why there is an error.)
- [ ] Optimisation
- [ ] Add colors to tetri when printing result map
- [x] Optimisation
- [x] Add colors to tetri when printing result map
- [x] Flag for debbuging (print every step in backtracking)
- [x] Adding flags (and password for blocking more args on moulinette)

View File

@@ -6,7 +6,7 @@
# By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/03/01 13:24:35 by vmanzoni #+# #+# #
# Updated: 2019/05/17 17:11:53 by hulamy ### ########.fr #
# Updated: 2019/05/29 14:03:03 by vmanzoni ### ########.fr #
# #
# **************************************************************************** #

View File

@@ -18,11 +18,11 @@
char *read_file(char *file)
{
char buf[BUFF_SIZE];
int fd;
int rv;
int i;
char *result;
char buf[BUFF_SIZE];
int fd;
size_t rv;
int i;
char *result;
if (((fd = open(file, O_RDONLY)) < 0) \
|| ((rv = read(fd, &buf, BUFF_SIZE)) < 0) \

View File

@@ -142,7 +142,7 @@ int fill_map(unsigned int *map, t_fillist *list, int size)
int search_map(t_fillist *list)
{
t_fillist *tmp;
unsigned int *map;
unsigned int *map = NULL;
int size;
int num;
int i;