
I Asked AI to Build Me a Rubik's Cube Simulator. It Worked. I Had No Idea Why.
So there I was, staring at a fully working Rubik's Cube simulator on my screen. Colors, grid, faces — everything exactly where it should be. It ran first try. And I had absolutely no idea what any of the code did. The Problem With "It Works" I'm an IB student trying to build a CS portfolio for university applications. Everyone says the same thing: build projects, put them on GitHub, show you can code. So I did what most students do. I described what I wanted to an AI, it gave me the code, I ran it, it worked. Done. Next project. Except — when I looked at the code, it was completely foreign to me. I knew what I asked for. I had no idea what the AI had actually built . I couldn't explain a single function if someone asked me to. That's not a portfolio. That's a magic trick I didn't understand. The Rebuild I decided to start over. Same project, same AI tools — but this time with one rule: I don't move to the next line until I understand the current one. The difference was in how I prompte
Continue reading on Dev.to Python
Opens in a new tab


