Push_swap/checker_folder/checker_utils.c
2022-01-18 22:37:33 +01:00

30 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* checker_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/18 02:14:22 by apommier #+# #+# */
/* Updated: 2022/01/18 06:49:36 by apommier ### ########.fr */
/* */
/* ************************************************************************** */
#include "../Utils/push_swap.h"
void do_move2(t_list **lst, t_list **lst_b, t_slist *a, t_slist **delete)
{
if (!ft_strcmp("rr\n", a))
{
if ((*lst)->next)
ft_ra_rb(lst, delete, 'a');
if ((*lst_b)->next)
ft_ra_rb(lst_b, delete, 'b');
}
if (!ft_strcmp("rrr\n", a))
{
ft_rra_rrb(lst, delete, 'a');
ft_rra_rrb(lst_b, delete, 'a');
}
}