Lecture 03 · Codex LabSystem Modeling
12–15 minutes · work in pairs · no coding experience required
Vibe-code the dynamics.
Describe a physical change, let Codex edit the simulator, then test whether the motion makes sense.- 1Choose
- 2Ask Codex
- 3Paste + Run
- 4Observe
Step 1 · Choose one mission
What should your simulator learn to do?
Step 2 · Build with Codex
Same angle, different future
Create two pendulums side by side. Give them the same initial angle but opposite initial angular velocities. Display theta and theta-dot for both so the difference is unmistakable.
HTMLPaste Codex's complete file here
4.4 KBLIVE PREVIEWTest the physical behavior
STATUS
Starter loaded. Press Start inside the preview, then choose a mission.
Your code runs only inside an isolated preview. Nothing is submitted by this course page or saved here.
Step 3 · One-minute debrief
What did you ask Codex to change?
Describe the code change
“We asked Codex to add ______.”
Describe the dynamics
“The motion changed because ______.”