summaryrefslogtreecommitdiff
path: root/push_swap.h
diff options
context:
space:
mode:
Diffstat (limited to 'push_swap.h')
-rw-r--r--push_swap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/push_swap.h b/push_swap.h
index d3dcbaa..e9918e6 100644
--- a/push_swap.h
+++ b/push_swap.h
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/12 16:59:09 by dkaiser #+# #+# */
-/* Updated: 2024/04/24 10:59:05 by dkaiser ### ########.fr */
+/* Updated: 2024/04/24 14:28:04 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -59,5 +59,9 @@ int stack_optimize(t_stack *stack);
void optimize_commands(t_psdata *data);
void stack_sort(t_psdata *data);
+int is_sorted(t_stack *stack);
+int calculate_score(t_psdata *data, int pos);
+void move_to_top(t_psdata *data, int idx);
+void move_to_spot(t_psdata *data, int idx);
#endif // PUSH_SWAP_H