Push_swap is a program that sorts a stack of integers with the minimum instructions possible and an auxiliary stack. Instructions are defined within the subject of the project; They're the only way allowed to manipulate the data in the stacks.
checker is a utility program that, taking the same arguments as push_swap and its outputted instructions, checks if the stack ends up sorted, thus verifying if push_swap is correctly sorting the stack.
1- Clone this repository and enter it:
git clone https://github.com/reomelo/42Porto-push_swap.git && cd 42Porto-push_swap
2- Run make
and execute with a list of integers (read subject):
make && ./push_swap <nbr> <nbr> <nbr> ...
make
or make all
- compiles the project
make clean
- wipes all object files
make fclean
- deletes ./push_swap and all object files
make re
- fclean + all