Bug Defense
Bugs are coming. Type their code to fix them and keep production up.
DevType mini game
BUG DEFENSE
Bug Defense
Bugs are coming. Type their code to fix them and keep production up.
Or press Enter to start
A keyboard game: just start typing, no need to click. Type the boss's line breaks with Enter.
Ranking
| Rank | Player | Language | |||
|---|---|---|---|---|---|
One best score per person. Players who hide from rankings are not shown.
What is Bug Defense?
Bug Defense is a typing mini game for engineers. Each bug coming in from the right carries a piece of real program code. Type that code correctly to fix the bug.
The code comes from DevType's official practice problems in 15 languages. As you play, you naturally get used to typing variable names, symbols and common patterns. It is free in your browser, and signing in keeps your records on the rankings.
How to play
1Type code to fix bugs
Your first key targets the nearest bug whose code starts with it. Type the whole code and the bug is gone. A bug that reaches the production server takes HP; at zero, the game is over.
2Use defense tools between waves
Fixing bugs earns commits. Between waves, spend them on defense tools: Linter, Test, CI/CD and Rollback.
3Beat the boss every 5 waves
Every 5 waves, a boss (legacy code) with several lines of code appears. Type its line breaks with Enter. Waves never end and get a little harder each time.
Bug guide
10 kinds of bugs, each moving in its own way. New bugs join as the waves go on. More bugs and defense tools are on the way.
Typo bugFrom wave 1
A small fry that rushes in with short code.
NullPointerFrom wave 1
The most common bug, carrying one line of code.
Memory leakFrom wave 3
Spawns typo bugs until you fix it. Fix it early.
Race conditionFrom wave 4
Fix one of the pair, then the other within 3 seconds, or the first comes back.
Infinite loopFrom wave 6
Comes back with new code once you finish it. Fix it twice.
Spaghetti codeFrom wave 7
Slow but tough, carrying a long line.
DeadlockFrom wave 8
Up close, it chains the bugs in its lane and the next lanes and stops them; a few seconds later they all rush at once. Fix it first and they just walk on.
404 ghostFrom wave 9
You can only target it while its code is visible.
Zero-dayFrom wave 11
Rare, but charges at full speed.
Legacy codeBoss (every 5 waves)
A boss that arrives in the middle of every 5th wave and deploys more bugs every few seconds. Boss waves bring fewer other bugs. Type its lines, pressing Enter between them.
Defense tools
Between waves, spend your commits on defense tools (Linter, Test, CI/CD, Rollback). Bugs fixed by tools count toward kills and score too.
Linter15 commits
Fixes a typo bug that comes close in its lane, every 4 seconds
Test10 commits
Slows bugs in its lane during the next wave
CI/CD25 / 40 / 60 commits
Every few seconds, types the start of every bug's code for you (blue). Lv1 types 1 character, up to 3 at Lv3. You type the last character
Rollback20 commits
Restores 2 HP (once per break)
Programming languages
Choose from 15 programming languages. Each language page shows what its code is like.
Questions
- Is it free?
- Yes. It runs in your browser; nothing to install.
- Do I need to sign in?
- No. Signing in saves your records and puts them on the rankings for each language.
- Can I play on a phone?
- It is a keyboard game, so we recommend a computer.
- Does it help with typing practice?
- You type real code accurately, so it is good practice for symbols and programming patterns. For focused practice, try the practice problems and courses too.