Planning a walk? Don’t starve!
Use the Nuggulator to help you!
The Nuggulator tells you how many McNuggets you need to walk a certain distance. Then it breaks that nugget count down into the denominations available at a McDonald’s near you.
Try it out here.
I don’t like to exaggerate — but I think it may be a million times more important than Facebook and Wikipedia put together.
Okay. Um. Why does this exist?
I was reading about the Frobenius problem(for some reason).
The Frobenius number refers to the largest monetary amount that cannot be obtained using a specific set of coin denominations. It’s an NP-complete problem.
And in that Wiki, I saw that McNuggets could be another instance of Frobenius fun.
That was the germ that started the idea.
Oblique and kind of dumb, I know.
What’s your tech stack?
Nothing too complicated. Hardly a stack to speak of, really.
React front-end, with a
JSON of my McNugget data built in.
Results get shunted to the
Places API, and it sends an appropriate response back.
About as simple as could be.
Where’d you get your Nugget data?
This was, by far, the most time-consuming part of the development process.
The sun never sets on McDonalds’ empire. You can find McNuggets in 108 countries. I didn’t want to leave out a single one.
And while some countries share nugget denomination sets ([4,9,20] or [6,10,15], etc) in common, they didn’t present this information in any common format.
Sometimes it looked like this.
Or like this.
Or even like this.