Learn to write unit tests by feel
No videos. No quizzes. Just an AI bot exploiting every hole in your unit tests.
-
① Read the spec
See what the function is supposed to do, in plain input → output terms.
-
② Watch it cheat
The AI bot writes correct code that satisfies exactly what you tested.
-
③ Catch the gap
Spot the edge case it dodged, and add a unit test that exposes it.
-
④ Keep going until it's right
Repeat until there's no other way. Level completed!
For developers who want to prevent bugs
It plays like a game. It becomes a habit. It changes your way of testing.
-
🕵️ A worthy opponent
The AI bot wriggles out of anything untested. Every move is a lesson about your blind spot.
-
📈 Escalating difficulty
Start with battery levels. End up untangling speed displays and parking fees.
-
🔓 Real progression
A scoreboard tracks what you've unlocked, so you always know what's next.
-
🌍 Six languages
English of course, but also Dutch, German, French, Spanish or Italian.
-
💻 Seven programming languages
Let the AI bot write programs in JavaScript, TypeScript, Python, Java, C#, PHP or Ruby.
-
🧩 No setup at all
Runs entirely in the browser. No account, no install, no dependencies.
Ten levels, ten ways to get outsmarted
Each one looks simple. Until the AI bot finds something you haven't tested yet.
-
0 easy
Battery Level
The AI bot shows you first. Then it's your turn.
-
1 easy
Voting Age
Can you vote? Two possible outcomes.
-
2 easy
Wind Scale
Three thresholds stand between calm and storm.
-
3 medium
Review
Price and quality, working against each other.
-
4 medium
Discount
A full cart, a member card, or both at once.
-
5 medium
FizzBuzz
Everyone knows FizzBuzz. The AI bot too.
-
6 medium
Leap Year
An exception to the exception to the rule.
-
7 hard
Triangle Type
Every side changes the verdict.
-
8 hard
Speed Display
The physical display has limits. Find them all.
-
9 hard
Parking Fee
Free, flat, or by the minute. What now?
Frequently Asked Questions
No sales pitch. Just answers.
-
Q Is it really free?
Yes. No ads, no tracking, no paywall. Just a free game.
-
Q What programming languages are supported?
Let the AI bot write programs in JavaScript, TypeScript, Python, Java, C#, PHP or Ruby.
-
Q What languages are supported?
English of course, but also Dutch, German, French, Spanish or Italian.
-
Q Do I need to install anything?
Nope. It runs entirely in your browser. Without external libraries.
-
Q Do I need an account?
Nope. You can only play anonymously.
-
Q What information is stored?
Your progress is saved in your browser. It doesn't leave your computer.
-
Q Is it open source?
Yes. The source code is available on GitHub.
-
Q Who made this?
This game is created by a CS teacher. For the love of programming and testing.
The AI bot is waiting for you. Don't get fooled.
Click the button, follow the instructions, and see what the AI bot tries to get away with.
Play UnitTestGame for free →