Sorting Stick - SFML
A downloadable game for Windows
Sorting Stick
Sorting Stick is a visual representation of popular sorting algorithms built using SFML (Simple and Fast Multimedia Library) in C++. This educational game helps users understand how different sorting algorithms operate by animating their processes.
Github Link: https://github.com/Chintan-Patel-Games/Sorting-Stick
๐ฅ๏ธ ๐ ๏ธ Technologies Used
- C++
- SFML (Simple and Fast Multimedia Library)
๐ Algorithms Demonstrated
- Bubble Sort โ Repeatedly swaps adjacent sticks if they are in the wrong order, bubbling the largest to the end.
- Insertion Sort โ Builds the sorted array one stick at a time by inserting elements into their correct position.
- Selection Sort โ Finds the smallest stick in each pass and places it at the correct position from the start.
- Merge Sort โ Divides the array into halves, recursively sorts them, and merges the sorted halves.
- Quick Sort โ Partitions the array around a pivot and recursively sorts the sub-arrays.
- Radix Sort โ Sorts sticks by processing digits from least to most significant using counting sort as a subroutine.
๐ก Data Structure Used
- The sticks are stored in a dynamic array
- Each Stick is a custom struct that contains properties such as height and color, used for visualization.
๐ฎ Features
- Real-time visual feedback for sorting operations
- Highlights each step during the sort
- Educational tool for beginners to understand sorting algorithms visually
๐ Concepts Demonstrated
- Bubble Sort
- Insertion Sort
- Selection Sort
- Merge Sort
- Quick Sort
- Radix Sort
Updated | 3 days ago |
Status | Released |
Platforms | Windows |
Author | Chintan Patel |
Download
Download
Sorting-Stick.zip 7 MB
Leave a comment
Log in with itch.io to leave a comment.