/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/24 11:46:02 by ljiriste #+# #+# */
-/* Updated: 2024/01/24 13:49:25 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:26 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
void action_rotate(t_stacks *s, t_target target)
{
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/31 09:58:54 by ljiriste #+# #+# */
-/* Updated: 2024/02/06 12:34:29 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:26 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include <stdlib.h>
static int is_int(const char *str)
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/24 10:31:06 by ljiriste #+# #+# */
-/* Updated: 2024/02/22 14:27:20 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:26 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
#include <stdlib.h>
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/27 15:18:21 by ljiriste #+# #+# */
-/* Updated: 2024/03/01 09:59:03 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:26 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
static t_arr_stat reconstruct_lis(t_stack *lis, t_stack *stack,
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/24 11:37:22 by ljiriste #+# #+# */
-/* Updated: 2024/02/24 14:10:54 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:26 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
#include <limits.h>
#include <stddef.h>
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/22 14:22:08 by ljiriste #+# #+# */
-/* Updated: 2024/03/01 09:59:03 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:27 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
#include <stddef.h>
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/23 09:35:45 by ljiriste #+# #+# */
-/* Updated: 2024/02/24 11:29:15 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:27 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
#include <stddef.h>
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/15 14:42:01 by ljiriste #+# #+# */
-/* Updated: 2024/02/23 12:19:26 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:27 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
char target_to_char(t_target target, char both)
{
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/24 13:17:32 by ljiriste #+# #+# */
-/* Updated: 2024/03/01 09:59:04 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:27 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
// One may only use "non-print" stack manipulation in a case where
// the stacks return to their state, so as not to skew the output
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
#include <stddef.h>
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/01 09:45:01 by ljiriste #+# #+# */
-/* Updated: 2024/03/01 09:59:04 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:27 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
#include <limits.h>
#include <stddef.h>
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/24 11:48:47 by ljiriste #+# #+# */
-/* Updated: 2024/02/29 10:25:56 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:27 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
// conversions are meh
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/06 14:20:04 by ljiriste #+# #+# */
-/* Updated: 2024/02/29 11:10:56 by ljiriste ### ########.fr */
+/* Updated: 2024/03/01 10:07:27 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
-#include "checker.h"
+#include "push_swap.h"
#include "libft.h"
void init_stack(t_stack *s)