Menu

I let Twitch chat break my game's code, then made Codex race them to fix it
📰

I let Twitch chat break my game's code, then made Codex race them to fix it

DEV Community: typescript·Stephen Sookra·14 days ago
#qSwFCeHF
#devtotypescript#devto#dev#chat#codex
Reading 0:00
15s threshold

So on Sunday afternoon I was live on Twitch with my game on screen, and a viewer typed !break .

The game reloaded right there on stream with a real bug in it. One plus sign in the physics code had turned into a minus, so gravity was pointing the wrong way. Fourteen seconds after the break, that same viewer typed !guess gravity-sign and got it right. The overlay said CHAT WON. Codex still came in after its wait, found the line and had the fix passing in about 28 seconds, and the fixed code swapped into the running game without resetting the player.

The funny part is that the viewer was on another team in the same hackathon. That was honestly one of my favorite moments of the whole weekend.

Why I built this

On most streams chat just watches. You type something and it flies by. I wanted chat to have a real job, so I gave them the thing every developer hates the most, which is a bug showing up live.

Most AI streams I've seen put chat and the AI on the same team. Chat asks for a feature and the AI builds it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.