The playful building blocks have lived through many decades and surely, the creatures of this fantastic toy never imagined the people of this generation to create such fantastic electronics with it like this LEGO M&Ms machine.

Fully functioning, the LEGO M&Ms machine uses a color sensor to detect and accurately sort the rainbow chocolates into their respective rows. Cued to a very hyper version of Jingle Bells that's tweaked with some quirky cartoon-like sound effects, the video demonstrates how fast and effective this LEGO M&Ms machine is. After each color is sorted, they can be easily emptied into a container below.

For the picky eaters who discriminate against certain colors or who like to eat colorful candies in specific color-coded patterns, this building block machine is a perfect project to try to replicate.