Tech > SORTING TOY
made by Uras SARI
uploaded by urassari
language: lua
added:

- CLICK TO PLAY -
On iPhone or iPad: tap Play full screen, then Share > Add to Home Screen to play without the browser bars.
0
sorting program I made a while ago on my 3DS, around at the start of this summer. (with sound!)
hold A (z) to shuffle, press B (x) to start bubble sort, and press X (a) to stop.
funny thing is, I planned to only have it do bubble sort, but I implemented a selection sort mode is completely by accident.
since selection sort is just bubble sort but going back to the beginning after every swap, and this program does one swap every frame, you can hold the B button to make it go back to the beginning every frame and do a selection sort instead of bubble.