README and few little corrections on code readability
This commit is contained in:
@@ -18,5 +18,7 @@ Le but de ce projet est d’agencer les Tetriminos entre eux pour former le plus
|
|||||||
|
|
||||||
## BONUS
|
## BONUS
|
||||||
- [x] Best error handler (more details on why there is an error.)
|
- [x] Best error handler (more details on why there is an error.)
|
||||||
- [ ] Optimisation
|
- [x] Optimisation
|
||||||
- [ ] Add colors to tetri when printing result map
|
- [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)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ #
|
# By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2019/03/01 13:24:35 by vmanzoni #+# #+# #
|
# 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 #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ char *read_file(char *file)
|
|||||||
{
|
{
|
||||||
char buf[BUFF_SIZE];
|
char buf[BUFF_SIZE];
|
||||||
int fd;
|
int fd;
|
||||||
int rv;
|
size_t rv;
|
||||||
int i;
|
int i;
|
||||||
char *result;
|
char *result;
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ int fill_map(unsigned int *map, t_fillist *list, int size)
|
|||||||
int search_map(t_fillist *list)
|
int search_map(t_fillist *list)
|
||||||
{
|
{
|
||||||
t_fillist *tmp;
|
t_fillist *tmp;
|
||||||
unsigned int *map;
|
unsigned int *map = NULL;
|
||||||
int size;
|
int size;
|
||||||
int num;
|
int num;
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
Reference in New Issue
Block a user