Goal: Help our six furry friends line up from shortest ➡️ tallest so the Rainbow Purr-ade can begin! Each pass the neighbours compare ↔: - If the left cat is taller, they swap places with a smooth glide - If not, they stay put and the algorithm moves on. Keep an eye on the orange list (top-left): it shows the cats’ “height scores” in real time. What’s Bubble Sort, Anyway: Bubble Sort is like cats jostling for the best parade spot: - Make a pass across the line. - Compare two neighbours. - If they’re in the wrong order (Left ? > Right ?), swap! - Repeat until the biggest cat “bubbles” to the end of the line. - Shrink the range and do another pass. - After n-1 passes (for n cats), everyone is purr-fectly sorted. ✔️ It’s simple, easy to visualise, and great for learning how algorithms work step-by-step!
Try These Remix Ideas: - Random colors: Change each cat’s costume every swap. - ⏱️ Timer challenge: How fast can Bubble Sort finish with 50% speed? - Compare algorithms: Duplicate the project and code Selection Sort or Insertion Sort. Which is quicker? Remix Rules: - Feel free to remix, add music, new breeds, or even dogs! Just keep the credits and share what you learn. Happy sorting & have a meow-vellous time!