I wrote this post as part of the Kiroween Hackathon 2026. Ghost Run is my entry in the Resurrection category, built in Kiro in under 23 hours.
Quick: what does this return?
const scores = [ 10 , 9 , 2 ] ; scores . sort ( ) . reverse ( ) ;
Enter fullscreen mode
Exit fullscreen mode
If you said [10, 9, 2] , we made the same mistake. By default sort() compares items as text, where "10" comes before "2" . It gives [10, 2, 9] and reverse() turns that into [9, 2, 10] .
That one wrong idea, "sort() compares numbers", is what this whole project is about.
The demo I couldn't fully explain
I started vibe coding a lot for my personal projects. The code worked. I couldn't always tell you why. That gap followed me into hackathons. At MadHacks in November, an hour before judging, I was still asking some of my teammates what parts of my own demo did. We placed 4th. Now I want to learn the core and know what every part of my code does.
I'm not the only one.…