Skip to content

danielzting/algorithm-simulator

Repository files navigation

Logo

Algorithm Simulator

Become your favorite sorting algorithm!

Level select screen It seems like there's a simulator for everything, whether it be flights, goats, or yandere. But have you ever wondered what it feels like to be a sorting algorithm‽ No? Well, now you can find out anyways! In Algorithm Simulator, inspired by Timo Bingmann's widely viewed 15 Sorting Algorithms in 6 Minutes, you control an algorithm operating on an array, trying to sort as fast as possible. With ten different levels, a cool visualization, and sound effects, you can fulfill your sorting dreams...

A demo (large download warning: ~5 MB gzipped) is available on this repository's Github Pages. It requires a desktop browser with support for WebAssembly and WebGL. Use it to make a lecture a little more interesting, study for your sorting algorithms certification, or annoy the neighbors with the sound...

Anti-pitch

This is beta software, so there will inevitably be things that are confusing, broken, or straight up wrong. See the issues for a list of caveats and don't hesitate to open another one if you find something new.

Contributing

I welcome any bug reports or feature requests. Pull requests are appreciated as well, though I apologize for my code in advance. If you like this so much that you want to throw money at me for some reason, I will add any 80x24 ASCII text block of your choosing to the credits.