/42Barcelona-PushSwap-ProChecker

Step by Step Prochecker for Push_Swap 42 proyect

Primary LanguageC

PUSH SWAP PRO CHECKER

Checker with step by step and GUI pro features

GitHub code size in bytes Number of lines of code Code language count GitHub top language GitHub last commit

The main goal is to provide a useful and visual tool to see inside yout algorithm of sorting and try to get your bugs.

Is works like the oficial checher but with GUI and step by step functionality

Pull files ↙️

git clone --recursive https://github.com/ailopez-o/42Barcelona-PushSwap-ProChecker.git

Compile the program ↙️

Make

Execution example, important to do in bash shell (execute bash previously)

ARG="4 67 3 87 23"; ./push_swap $ARG | ./pro_checker $ARG

Execution example with randomice nums, important to do in bash shell (execute bash previously)

ARG=$(ruby -e "puts (0..500).to_a.shuffle.join(' ')"); ./push_swap $ARG | ./pro_checker $ARG

Controles 🕹

TECLA ACCION
I Step by Step instructions
S Run all the instructions
P Pause
1 exec 'sa'
2 exec 'sb'
3 exec 'ra'
4 exec 'rb'
5 exec 'rra'
6 exec 'rrb'
7 exec 'pa'
8 exec 'pb'
ESC ❌ Close

PushSwap Game rules

Check my push_swap repo: https://github.com/ailopez-o/42Barcelona-Push_swap