Built almost entirely out of Legos, this machine runs on custom software built on Python. The only other non-Lego components are the head that cuts the wrapping paper and some wiring. To wrap, the user simply places their boxed gift on a pad made of Lego where it is scanned with optical sensors to determine its dimensions.
The custom software then takes that data and does the math to figure out exactly what size the sheet of wrapping paper needs to be so that there is just the right amount of extra paper on each end. From there the machine rolls out the paper and cuts it to the measurements, presenting you with the perfect-sized sheet. All you have to do then is wrap the darn thing.