SFML community forums

General => SFML projects => Topic started by: zedrex on September 18, 2020, 08:10:37 pm

Title: AlgoSketch - Algorithm Visualizer created with SFML
Post by: zedrex on September 18, 2020, 08:10:37 pm
Hello everyone,

AlgoSketch is an algorithm visualizer (for 5 sorting algorithms and 3 grid algorithms currently) created with SFML and C++. It was developed by me and one of my buddies for our undergrad course. We are still newbies but the project is somehow finalized (and we are proud of it :3).

We implemented a pseudo application library based on SFML and built the project on top of it. The application engine consists of basic window, state and event managers and some basic UI element classes. The project is still buggy because we have very little experience in SFML and OO principles. Thanks in advance for any advice or tips for us since we plan to put some more work on the project in the future.

For grid algorithms, you can create a custom sized 2D grid and draw a maze. Then you can specify the source/destination for the algorithm. For sorting algorithms, you can specify the size of the array and a list of that size will be created with randomly generated values as height. You can pause and resume the algorithms as you wish.

The code is open source and you can find it here: https://github.com/zedrex/AlgoSketch (https://github.com/zedrex/AlgoSketch)

Here are 3 visualizations from the project:

(https://github.com/zedrex/AlgoSketch/blob/master/demo/Flood-Fill-Demo.gif?raw=true)

(https://github.com/zedrex/AlgoSketch/blob/master/demo/BFS-Pathfinder-Demo.gif?raw=true)

(https://github.com/zedrex/AlgoSketch/blob/master/demo/Shell-Sort-Demo.gif?raw=true)

Thank you very much.
Title: Re: AlgoSketch - Algorithm Visualizer created with SFML
Post by: Raynobrak on September 25, 2020, 09:02:23 am
Looks great, well done ! I like the UI (and the minecraft font  :)).
Title: Re: AlgoSketch - Algorithm Visualizer created with SFML
Post by: zedrex on March 29, 2021, 12:16:13 am
Looks great, well done ! I like the UI (and the minecraft font  :)).

Thanks a lot!