Fried Rice Master
←Back to play

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.

Holding the round Circuit Playground Express board in front of a laptop showing the empty pan in the game
Holding the round Circuit Playground Express board in front of a laptop showing the empty pan in the game

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.

Game screen at the start: white rice, egg, shrimp and green onion in the pan, progress bar empty

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.).

Game screen after tossing: the rice has turned golden and the progress bar is almost full

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.

Victory screen reading DELICIOUS! You made the Golden Fried Rice! above a plate of fried rice with a fried egg
Victory screen reading DELICIOUS! You made the Golden Fried Rice! above a plate of fried rice with a fried egg

step 3

Serve

Once the rice reaches perfect browning, a procedurally generated plate of golden fried rice appears.

Under the hood

On the CPX · MakeCode

MakeCode blocks for the CPX: button A types RICE, button B types EGG, buttons A+B type COMBO and shake types TOSS; button presses also light the LED ring
MakeCode blocks for the CPX: button A types RICE, button B types EGG, buttons A+B type COMBO and shake types TOSS; button presses also light the LED ring

Every input types a command; button presses also light the LEDs.

On screen · p5.js

The p5.js editor with the game sketch on the left and the cooking game preview on the right
The p5.js editor with the game sketch on the left and the cooking game preview on the right

The sketch reads each command and runs the pan physics.

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.

UMI CHEN
Product Designer
© 2026 UMI CHEN
Last updated Nov 30, 2026
Designed and built by Umi with Framer, Claude Code, and Cursor
UMI CHEN
Product Designer
© 2026 UMI CHEN
Last updated Nov 30, 2026
Designed and built by Umi with Framer, Claude Code, and Cursor