{"id":13460221,"url":"https://github.com/o-reo/push_swap_visualizer","last_synced_at":"2025-03-24T18:33:21.496Z","repository":{"id":38051499,"uuid":"125204787","full_name":"o-reo/push_swap_visualizer","owner":"o-reo","description":"A clean visualizer for your Push Swap Algorithm, you can't fix what you can't see !","archived":false,"fork":false,"pushed_at":"2024-02-18T13:47:53.000Z","size":5382,"stargazers_count":303,"open_issues_count":6,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-01T10:20:57.873Z","etag":null,"topics":["algorithms","cpp","imgui"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/o-reo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-03-14T11:50:47.000Z","updated_at":"2024-07-31T11:58:36.000Z","dependencies_parsed_at":"2023-12-22T19:45:22.220Z","dependency_job_id":null,"html_url":"https://github.com/o-reo/push_swap_visualizer","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-reo%2Fpush_swap_visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-reo%2Fpush_swap_visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-reo%2Fpush_swap_visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-reo%2Fpush_swap_visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/o-reo","download_url":"https://codeload.github.com/o-reo/push_swap_visualizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222004164,"owners_count":16914873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","cpp","imgui"],"created_at":"2024-07-31T10:00:37.577Z","updated_at":"2024-10-29T06:30:29.424Z","avatar_url":"https://github.com/o-reo.png","language":"C++","funding_links":[],"categories":["WELCOME"],"sub_categories":["**Push_swap**"],"readme":"# Push Swap Visualizer\n\nThis project is a visualizer for the **\"PUSH_SWAP\"** 42 School Project.\n\n**Push Swap** is a program that takes as argument a space separated list of numbers and outputs a list of commands that can be used to sort them.\n\nYou can read the subject [here](https://github.com/Binary-Hackers/42_Subjects/blob/master/00_Projects/02_Algorithmic/push_swap.pdf).\n\n## Install\n\n- Clone the `push_swap_visualizer` repository into the directory where your `push_swap` project is located:\n\n```bash\ngit clone https://github.com/o-reo/push_swap_visualizer.git\n```\n\nThis project uses C++17, cmake, SFML and ImGui.\n\n- Install required packages (if not already installed)\n  For Debian-based systems, you can install the necessary packages using the following commands:\n\n```bash\nsudo apt-get update\nsudo apt-get install cmake\nsudo apt-get install g++\nsudo apt-get install clang\nsudo apt-get install libgl1-mesa-dev libglu1-mesa-dev\nsudo apt-get install libx11-dev libxrandr-dev\nsudo apt-get install libudev-dev\nsudo apt-get install libfreetype-dev\n```\n\n- Navigate to the `push_swap_visualizer` directory, create `build` directory, and navigate into the build directory:\n\n```bash\ncd push_swap_visualizer\nmkdir build\ncd build\n```\n\n- Generate the build files using CMake and compile the visualizer:\n\n```bash\ncmake ..\nmake\n```\n\n- Run the visualizer:\n\n```bash\n./bin/visualizer\n```\n\n## Usage\n\n- If you've relocated your push_swap program, simply update the visualizer's menu directory from \"../../push_swap\" to the new path of your push_swap program. For instance, \"../../new_directory/push_swap\".\n\n- In the **Values** window\n  - Choose the size of the push swap input with the slider [Optional]\n  - **Shuffle** the input [Optional]\n  - The space separated values should be filled automatically, you can also put your own values\n  - Set the Push Swap program path (Absolute or relative path).\n  - **Compute** the sort commands, it will display OK when done.\n- In the **Controls** window\n  - **Load** the commands in the visualizer\n  - **Start** the animation\n  - Adjust the **Speed** as needed\n  - **Pause** and go **Step** by step to see the details of your algorithm.\n  - **Load** to restart the animation\n\n![](https://i.imgur.com/zqcsZfY.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-reo%2Fpush_swap_visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fo-reo%2Fpush_swap_visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-reo%2Fpush_swap_visualizer/lists"}