How I vibecoded a 3D Domino's Pizza Maker
Introduction
I’m a huge fan of Domino’s, but the current Pizza Maker interface just doesn’t cut it for me. With the rise of powerful AI coding tools, I took up the challenge to code a 3D Domino’s Pizza Maker from scratch, entirely powered by AI.
What is Vibe Coding?
Vibe Coding, popularized by Andrej Karpathy, is an AI-driven approach where code is generated by a large language model (LLM) based on prompts, streamlining and automating the coding process.
Prompting Methodologies
Since I am an Engineer, I was familiar with how I can design the system. Using a lightweight 3D engine such Three.js seemed sufficient. Prompting for vibe coding can be divided into the following methods
Zero Shot
Zero-shot prompting involves giving the AI a task without examples, relying on its pre-trained knowledge to generate an output
“code a 3D dominos pizza maker simulation using three.js”
This was zero-shot because the LLM inferred the requirements (e.g., toppings panel, 3D view, interactive elements)
Few Shot
Few-shot prompting provides a few examples in the prompt to guide the AI
“drag around the pizza and more realistic visuals. Use OrbitControls if required”
This was a few shot because the LLM used the provided examples such as building on it by adding OrbitControls for dragging and enhancing materials/shadows.
Discussion
Vibe coding, or automating the coding process, is here to stay. While having an engineering background currently helps in guiding AI more effectively, I believe that as AI capabilities advance, this advantage may diminish. What will remain highly valuable is the ability to craft precise, technical prompts. In particular, AI engineers who can design and write scripts that harness automation to streamline the coding process will be especially well-positioned to thrive
