the awesome power of BLAHAJ

What it does

When given a list (either as a file in a parameter or over stdin), it sorts its lines alphabetically, by shuffling them until they are sorted.

How we built it

Bashed it together in a few minutes in bash (pun 100% intended). I used the bash built-in sort command to check if the list is sorted yet, and the shuf command to shuffle it.

Challenges we ran into

I forgot to negate the loop's test, so it was shuffling sorted lists, and ignoring unsorted ones.

Accomplishments that we're proud of

Writing the whole thing in less than half an hour, while streaming on twitch.

What we learned

How to use OBS to stream to twitch, and how to set up a stream on the website.

What's next for monkey-SHort

The deepest, darkest hole, never to see the light of day, for crimes of O(n!) complexity, and ugliness.

Built With

Share this project: