A simple graphical sorter written in Python with Pygame where you can visualize many algorithms and see how they actually work.
You can adjust the speed using → or ← and shuffle the array at the end of the sorting to restart the algorithm by pressing SPACE. Finally, press ESC to exit.
I will add more algorithms when I have time.
Just launch the main.py
, choose your algorithm and the size of the array to sort.
When the Pygame window gets opened, press SPACE to start the algorithm.
- Nothing yet!
Quick.Sort.mp4
Merge.Sort.mp4
Heap.Sort.mp4
Any problems with running the script and any questions please create a new issue here.
You can also contribute to this project by requesting new features here.
I never ask for money for my open source projects. However, you can still tip me if you want. I am a Brave Verified Creator!
- Python 3.7.0+
Get a copy of the Project. Assuming you have git installed, open your Terminal and enter:
git clone 'https://github.com/marcpinet/sorting-visualizer.git'
To install all needed requirements run the following command in the project directory:
pip install -r requirements.txt
After that you can proceed to start the program by running main.py
.
- Nothing yet.
- Marc Pinet - Initial work - marcpinet
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used.