Giter Club home page Giter Club logo

push_swap_visualizer's Introduction

Push Swap Visualizer

This project is a visualizer for the "PUSH_SWAP" 42 School Project.

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.

You can read the subject here.

Usage

  • In the Values window
    • Choose the size of the push swap input with the slider [Optional]
    • Shuffle the input [Optional]
    • The space separated values should be filled automatically, you can also put your own values
    • Set the Push Swap program path (Absolute or relative path).
    • Compute the sort commands, it will display OK when done.
  • In the Controls window
    • Load the commands in the visualizer
    • Start the animation
    • Adjust the Speed as needed
    • Pause and go Step by step to see the details of your algorithm.
    • Load to restart the animation

Install

This project uses C++17, cmake, SFML and ImGui.

  • Install a C++ compiler (gcc, clang,...)
  • Install cmake
  • Move push_swap_visualizer inside push_swap
  • Inside push_swap_visualizer, mkdir :
    • 'build'
  • cd in the build folder and type :
    • 'cmake ..'
    • 'make'
  • run the visualizer with ./bin/visualizer

push_swap_visualizer's People

Contributors

o-reo avatar mikastiv avatar alvachon avatar mrlego8-9 avatar t-h2o avatar

Stargazers

Sc4r3Cr0w avatar Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.