I Fixed One Bug in My Game, and Three More Appeared
Building a spaced-repetition vocabulary game with Claude, and the testing mistake that fooled me for months
I fixed one bug in my game, and the fix created another. I fixed that one, and a third appeared.Mong, our family's cat, graduating from Moeum School. I drew it, and Gemini added the cap and gown.
This is the story of how I turned that game into a vocabulary-learning tool, and how I spent months chasing bugs that may not have been bugs at all.
Why I Built Moeum School
It was a winter day in 2026, and snow was drifting down like baby's breath blossoms. Soosooland's returning visitors were dropping off, and I wondered if the whole platform was dying. I played Wordle for a few days and then stopped. I get hooked on Civilization and then drop it. Honestly, I don't play many games these days. I've played a huge number of them over the years, but once I learn the winning strategy, I lose interest almost immediately. So I couldn't blame visitors for leaving. I had to let go of my expectations.I had assumed school vacation would bring more players, but it didn't. I needed to give people a reason to come back every day. I could add competition, saved high scores, daily attendance rewards, or small games inside an adventure game. But all of that means logins, managing user data, and more storage. That was too much for me.
So I thought: it's school vacation, so let's make kids study. I decided to build a quiz from words in elementary school textbooks. Since the game's name also means "collection," a quiz made from a collection of textbook words felt like a natural fit.
Claude built the game file and a sample wordpool (the list of answers the game uses). Clicking letters with a mouse seemed tedious on desktop, so I added a text box where you can type consonants.
Because it was meant for learning, I changed the structure too. Instead of random questions, players work through every question in the wordpool. I also added a "retry wrong answers" feature.
Vocabulary Is the Foundation of Literacy
I once heard that vocabulary is the foundation of literacy. When we read, the brain processes word, then sentence, then paragraph, then the whole text. If you get stuck at the first step, you can't move on. So learning word meanings seemed like the right place to start.I once read a thick Korean dictionary cover to cover, twice. I skimmed the words and only read the definition when I didn't know one. Surprisingly, it wasn't boring. If I had known about Ebbinghaus's forgetting curve back then, I might have locked all those words into long-term memory. I didn't, so this time I used the forgetting curve to build the game.
How Moeum School Works
The words come from the elementary school curriculum. To move a word's meaning into long-term memory, you repeat it at intervals of 3, 7, 14, and 28 days after the first study. I call these Study 1, Review 2, Review 3, Review 4, and Review 5. Words you answer correctly in Study 1 count as known and are not reviewed.The First Bug
Long after launch, I found a bug. I had missed a word in Study 1, and when I reviewed it three days later and answered correctly in Review 2, the game declared all five stages complete and handed me a trophy.No, that's not right.
The dopamine kicked in. I told Claude we had to fix the code, and I did whatever Claude suggested.
The Fix-and-Break Loop
A new bug appeared, and I had to explain the game rules all over again. The wordpool is loaded from GitHub, so I couldn't test in an editor. I kept pushing changes to GitHub and testing live.Fix one thing, break another. Fix that, break something else. After a review, I should have had to wait 7 days before the next one, but I could do it right away.
AI Collaboration (?)
Claude told me I'd hit my usage limit. While waiting, I went to chat with ChatGPT.I told ChatGPT I had built a learning game based on the forgetting curve. It praised me: most people don't even know this system exists, and I had designed a game around it. I asked whether my review intervals made sense. It said intervals that roughly double each time are an efficient method called expanding spaced repetition.
I said I'd like to add more reviews, but kids study this material at school anyway, so I kept the schedule loose. I also mentioned that my code file was too long and ChatGPT's free plan probably couldn't handle it. It said code analysis works on the free plan too.
After reading the code, ChatGPT pointed out a few places to fix. I passed that to Claude, and Claude said it had overcomplicated things and that ChatGPT's suggestion was simple and clear. (When I tell Claude something, it often pushes back with "No, that's not right." But when I say ChatGPT suggested it, Claude stops weighing it on its merits and agrees every time. AIs seem to support each other completely.) Claude told me what to change, and yet another bug appeared.
Which Bug Is Worse?
I fought the Moeum School index bug all day long. It was bedtime. I described the first bug to Claude, then the current one, and asked which was worse.Claude said the current state was worse and suggested going back to the original version.
"Let's start over tomorrow in a new window."
Enter Claude Opus
The next morning, I decided to switch models. I usually use Claude Sonnet, the default, out of habit, but the bugs looked serious, so I opened a new window with Claude Opus and explained the game rules from scratch.The bug I had struggled with all day, Opus fixed quickly. Claude overhauled the code. It also added a new feature: when you earn the trophy, you can return it and reset your progress.
The Testing Trick
After an overhaul like that, I had to test it. But the full cycle takes 3 + 7 + 14 + 28 = 52 days. So I asked Claude to temporarily change days into a much smaller unit. I was thinking minutes (3, 7, 14, and 28 minutes). Claude made them seconds, which was even faster. Claude also suggested a strategy I wouldn't have thought of: a test wordpool with just five words.Back then, I would push code to GitHub, test it immediately, and tell Claude, "This still isn't fixed." I didn't know it takes time for GitHub changes to show up in the game. And this wasn't a mistake I made for a few days. I had been making it for months. Looking back, maybe Sonnet had already fixed the bug correctly the day before, and I had been testing the old code.
Still, Opus does seem smarter than Sonnet. If Opus couldn't fix it, I was ready to bring in ChatGPT and Gemini for a group brainstorm. In the end, Claude fixed everything.
Moeum School is live at Soosooland.com. Have you ever lost days, or even months, debugging code that had already been fixed? I'd love to hear your stories.
🪄 Written by Soosoo, translated by Claude

댓글