Sudden Death Rainbow Sorting Game Reveals Your True Colors

When [marzsman]’s eight-year-old daughter thought up a game they could play together involving rainbows, he was all ears. She is a certified rainbow expert, after all. They had a few R&D sessions and came up with a rainbow sorting speed trial game that looks fun to play and fairly easy to build.

Press that blue button on the side, and the RGB LEDs along the top are put in randomized order. The object of this game is simple — just sort the rainbow before the other player by pressing each LED’s corresponding arcade button. Whoever sorts faster is rewarded with a rainbow animation behind their set of way-cool clear buttons.

Inside the laser-cut box is an Espruino, which is a handy little microcontroller that speaks JavaScript. All of the arcade buttons are wired up as a key matrix. The astute among you have noticed there is six of everything, and that’s because indigo light is too hard to distinguish from blue. Check out the intense gameplay after the break.

If [marzsman]’s daughter wants to learn computer science, rainbows are good for that, too.

10 thoughts on “Sudden Death Rainbow Sorting Game Reveals Your True Colors

    1. With 3 colour receivers in the eyes we should have 6 pure colors (8 if you count black and white). Newton as many others simply tried to make the science adhere with belief so both could be a part of the same “universal principles” .
      Nevertheless unicorns are not included and congrats to the author for the build. I know how gratifying is to have a good time with our sons in the workshop during the construction of a gadget and later using it.

  1. Wouldn’t indigo be something like ‘royal blue’ vs a ‘cyan’ LED?

    We only distinguish violet from blue as the red cones have a sensitivity hump towards the blue-to-violet region.

Leave a Reply to Reactive Light Cancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.