minor modifications
This commit is contained in:
2
Makefile
2
Makefile
@@ -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/04/14 22:01:39 by vmanzoni ### ########.fr #
|
# Updated: 2019/04/15 20:17:47 by vmanzoni ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
- [x] Check if we have a file
|
- [x] Check if we have a file
|
||||||
- [x] Read file
|
- [x] Read file
|
||||||
- [ ] Check if there are errors in file
|
- [x] Check if there are errors in file
|
||||||
- At least 1 tetrimino or less than 26
|
- At least 1 tetrimino or less than 26
|
||||||
- [ ] Check if every tetrimino is valid
|
- [x] Check if every tetrimino is valid
|
||||||
- 4 char * 4 lines
|
- 4 char * 4 lines
|
||||||
- 4 blocks in 1 tetrimino
|
- 4 blocks in 1 tetrimino
|
||||||
- No solo block
|
- No solo block
|
||||||
- [ ] Transform file into tetriminos
|
- [x] Transform file into tetriminos
|
||||||
- [ ] Backtracking for smallest square
|
- [ ] Backtracking for smallest square
|
||||||
- [ ] Transform tetriminos to letters
|
- [ ] Transform tetriminos to letters
|
||||||
- [ ] Print result
|
- [ ] Print result
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: hulamy <hulamy@student.42.fr> +#+ +:+ +#+ */
|
/* By: hulamy <hulamy@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2019/04/14 15:20:53 by hulamy #+# #+# */
|
/* Created: 2019/04/14 15:20:53 by hulamy #+# #+# */
|
||||||
/* Updated: 2019/04/15 17:16:09 by hulamy ### ########.fr */
|
/* Updated: 2019/04/15 20:19:55 by vmanzoni ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ char **fill_tetraminos(char **square, int *tab)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** this function calculate the line and columns where the tetraminos
|
** This function calculate the line and columns where the tetraminos
|
||||||
** start and end, by skipping the empty lines
|
** start and end, by skipping the empty lines
|
||||||
**
|
**
|
||||||
** ! it has a little bug so far, i need to fix it
|
** ! it has a little bug so far, i need to fix it
|
||||||
@@ -149,4 +149,3 @@ int main(int ac, char **av)
|
|||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
|
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2019/04/15 14:48:14 by vmanzoni #+# #+# */
|
/* Created: 2019/04/15 14:48:14 by vmanzoni #+# #+# */
|
||||||
/* Updated: 2019/04/15 15:10:01 by vmanzoni ### ########.fr */
|
/* Updated: 2019/04/15 20:14:43 by vmanzoni ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
/*
|
/*
|
||||||
** Function that parse a file and return each tetrimino
|
** Function that parse a file and return each tetrimino
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
void parse_input(char *input)
|
void parse_input(char *input)
|
||||||
{
|
{
|
||||||
char *tetri;
|
char *tetri;
|
||||||
@@ -32,3 +32,4 @@ void parse_input(char *input)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user