Fried Rice Master
A phygital cooking game where a circuit board becomes the frying pan
Fried Rice Master turns an Adafruit Circuit Playground Express (CPX) into a frying pan. Press its buttons to add ingredients, then toss to stir-fry them on screen until the rice turns golden.
I built it solo: the concept, the CPX’s MakeCode program, and the p5.js game, with Gemini as a coding partner along the way.
Role
Interaction Designer & Developer
Tools
Circuit Playground Express, MakeCode, p5.js, Gemini
Year
2025
The full game flow: add different ingredients, toss till golden brown, and serve.
Idea
Plugged in the CPX…this looks kinda like a pan
The concept came from the hardware itself. With its USB cable attached, I found the round CPX looks and feels just like a frying pan on its handle.
That sparked a “phygital” (physical + digital) fried-rice game where the controller defines the experience.
How it works
Press buttons to add ingredients, and toss hard to stir-fry!
The CPX acts as a USB keyboard: each button press, and each toss its accelerometer detects, types a short command (RICE, EGG, COMBO or TOSS) that the p5.js game reads.

step 1
Add ingredients
Button A adds rice, B adds eggs, and A+B add shrimp and green onion. The LEDs light up matching the ingredients (white for rice, yellow for eggs…etc.).

step 2
Toss to cook
The accelerometer detects each toss. The ingredients fly up and mix, and the rice browns as their cooked level rises.
step 3
Serve
Once the rice reaches perfect browning, a procedurally generated plate of golden fried rice appears.
Challenges
Vibe-coding trap, and a feature I had to cut
LLMs can be surprisingly out of date
I started with pure vibe coding. Gemini suggested CircuitPython, but its knowledge was out of date for the current CPX libraries. The version mismatch caused constant crashes (the blinking red light of death), and about 60% of my time went to debugging firmware. Switching to MakeCode solved in minutes what had taken hours to fail in Python.
The microphone heard every button click, so I had to cut the blowing feature
I wanted a “blow to put out the flame” feature, but pressing the buttons physically triggered the CPX’s microphone. When I raised the sound threshold in code, the CPX disconnected and the program failed to download. I cut the feature to save the project.
Learnings
AI moves fast, but humans still play an important role
01
Pivot fast
When a tool isn’t working, don’t sink more time into it. Rapid iteration means being willing to abandon a broken path right away, and knowing when to do that still takes human judgment.
02
Prompt for polish, hand-edit the layout
AI generated the procedural rice art with almost no errors, but kept overlapping the text and progress bar. For spatial UI tweaks, reading and editing the code myself was faster than prompting.





