This project help you visualize your push swap algorithm using a step by step graphical interface supported for Linux, Mac and Windows.
debian/ubuntu
if you dont have access to the super user priveleges:
- download the .deb release file from here.
- extract the package using dpkg to the desired location
dpkg -x /path/to/push-swap-visualizer_1.0.0_amd64.deb ~/Desktop
- and then go to the path you extracted the package, in my case ~/Desktop/usr/bin and run the executable
cd ~/Desktop/usr/bin
chmod u+x push_swap_visualizer
./push_swap_visualizer &
or just add an alias in your ~/.zshrc file
alias psv="/path/to/push_swap_visualizer &"
psv
otherwise just run this command if you have admin rights
dpkg -i /path/to/push-swap-visualizer_1.0.0_amd64.deb
and you are good to go!
download this file unzip it and run the app and thats it!
but if you want you can also build from source all you need is nodejs
git clone https://github.com/obenchkroune/push_swap_visualizer.git
cd push_swap_visualizer
npm install
npm run make
this command will build the appropriate release for your current operating system, and voila! your push swap visualizer will be available at the out/ directory.
PRs are welcome anytime and if theres any bug encountered please let me know!
𧬠inspiration:
hope this is helpful and good luck in your 42 journey π₯³.