Compare commits
2 Commits
718c214400
...
27f69f04eb
| Author | SHA1 | Date |
|---|---|---|
|
|
27f69f04eb | |
|
|
b4b456392e |
|
|
@ -6,18 +6,19 @@
|
|||
/* By: smatthes <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/25 18:58:21 by smatthes #+# #+# */
|
||||
/* Updated: 2023/03/26 07:47:58 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/26 07:55:41 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "include/handle_input.h"
|
||||
|
||||
// handle sum of opposite inputs
|
||||
int handle_input(int argc, char **argv, int *borders, int n)
|
||||
{
|
||||
if (check_inp_valid(argc, argv, n) == 0)
|
||||
if (!check_inp_valid(argc, argv, n))
|
||||
return (0);
|
||||
atoi_arr(argv, borders, n);
|
||||
if (check_opposite_sum(borders, n) == 0)
|
||||
if (!check_opposite_sum(borders, n))
|
||||
return (0);
|
||||
return (1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/26 06:13:07 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/26 07:49:42 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/26 07:54:38 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -32,7 +32,6 @@ int main(int argc, char **argv)
|
|||
return (0);
|
||||
}
|
||||
// TODO: get position
|
||||
// handle sum of opposite inputs
|
||||
/*
|
||||
if (backtrack(borders, board, n) == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue