Do you think you can do all the hard things it takes to learn a skill, struggle and all, and still have fun? And I mean actual fun, not “fun” for a learning tool.
I think you can. But finding out means going through the same struggle and iteration as learning anything else. Can any skill, even every level of math, be learned in a fun environment, yet still be practiced realistically enough that you can apply it to real problems with creativity?
TypoDefense is my first real attempt at an answer. I’ve split this post into three parts, the journey that led me to the question, my hypothesis, and the experiment.
Part 1: The Journey Through The Problem
I have played many games to try to learn new skills. And as much as I have enjoyed the experience for a time, I always hit a point where I feel like I am only gaining theory at best. I’m not applying anything to solve real problems. And if I am, then it either stopped being a game or never was one. It’s more like an interactive widget.
While those widgets can be enlightening, they don’t help my ADHD-riddled brain break through the friction of learning something. I am often too impatient for the “trivial” things. I want to skip straight to the shiny, interesting parts of the subject.
Steam has some great computer science games for a bunch of different subjects. But I always struggled to carry the concepts over when it came time to use them, things such as setting up logic gates on breadboards or understanding assembly. In the game I could make an 8-bit adder, access registers, or create a for loop with a jump command. But I often felt lost or disoriented in what a martial artist would call a ‘live scenario’.
I’ve wanted to learn touch typing ever since I began programming, so I could be super cool, use vim or emacs, and finally be a ‘real programmer’ instead of playing at one. But between spending my time actually becoming a better programmer and being more efficient with my work output, I never stuck with any of the games offering to teach touch typing. I’ll admit part of this is bad time management or a short attention span. But the games were often typing drills with a popular action arcade game skin slapped on top, divorced from the actual act of touch typing. Again, in martial arts terms, it’s like learning all the moves but never having to deal with someone fighting back, or with your mistakes at full speed.
I was never bad at math, but I often fell behind because… well, you get it, we don’t have to constantly repeat ourselves here. I ended up learning math as I needed it and found it much easier that way. A little trig here, a little calculus there, and finally a dash of linear algebra.
But nothing beats following a curriculum. Cracking open the textbook, working out the things you don’t get (or moving on and coming back), doing drills, taking tests and reworking the problems you got wrong. That is also no fun. And as cool and interesting as many of the widgets and interactive visuals out there are, they aren’t games. They can maybe ease the friction a bit, but it’s still hard work and persistence over a lot of time to gain the understanding and skill to apply that knowledge freely, say in game development or programming in general.
Some people will say that to learn things you have to struggle, and that’s true. I’m not looking for a shortcut or expecting it to be easy. I just wonder if it has to feel so hard to gain what’s needed to know and apply knowledge with skill and confidence. I have also had fun struggling, especially in video games. I would say most people like to be challenged, and even like to grow, if it’s framed correctly. Why can’t math be like pushing into a new area in a roguelike, or figuring out the most optimal path in a platformer to get a perfect time score? To go back to the martial arts analogy, most interactive math learning just shows you the moves without even drilling them. It’s still just theory.
Part 2: The Hypothesis
So how do you test something like that? I needed a skill I didn’t already know, but one I could still build a game around and judge honestly for myself. That ruled out math, for now. I still believe an actually fun math game is possible, just not as a first attempt, if I wanted to judge the learning and not just the game.
Touch typing fit. You don’t need to know how to touch type to make the game. You just need to know what doing it properly looks like. And it isn’t trivial to learn. You have to apply yourself. That matters, because the struggle is part of the fun. In video games you can always cheese the mechanics or enter a cheat code, but the novelty fades fast and takes the fun with it. Some of the most fun moments I have had in a video game came with some frustration. When I really wanted to beat something and I would double down on my efforts trying to get the controls down just right, reacting in time, reading the signals shown, all for it to pay off with a successful moment.
So here’s my hypothesis. A video game teaches you its basic controls, ramps up the intensity, and demands that you adapt, reach and juggle mechanics, switching between them on the fly. If learning touch typing could work the same way, that would be the proof of concept. Break the skill down into its versions of jumping, sprinting and shooting, and bind each real typing action tightly to a control.
That’s the martial arts progression from Part 1. Learn the move, drill it at different speeds, add more and more resistance, and finally face the real friction of using it live. In a game built like that, a mistake isn’t just points off a score. It’s the same problem you’d have to solve in a real, practical situation.
Part 3: The Experiment… So Far
To me, the biggest thing that separates this approach from typical gamified learning, or what used to be called “edutainment” before it wasn’t cool anymore, isn’t the content. You could take a typical course, or for other skills a textbook or whatever learning resource is effective in that domain, and make it into the levels and challenges spread throughout the game. That part is trivial. Most learning games stop there. They take an interactive thing and spread it over the theory. Instead of leaning too hard into gamification, or too hard into simulation or modeling, the goal is to build a system where you can fail and make mistakes the same way you would doing the real thing, and fix them the same way too. That’s what lets every part of the learning experience, from theory to drilling to actual application, merge into one cohesive experience. One that sparks the same level of engagement and flow state, with minimal friction, as the games we play to gain (let’s be honest) trivial skills. Be it getting better at first-person shooters or more efficiently balancing systems and resources to min-max in strategy games.
To be honest, the core idea behind TypoDefense is simple on purpose. It’s a game I’m proud of. I spent a lot of time and effort making it run well and making it fun and polished. But it’s also an experiment, a proof of concept. I imagined an arcade-style space shooter, something like Galaga, and in terms of complexity it’s basically a level up from that. On the surface it might look like just another typing game. The difference is a couple of small changes. Most typing games automatically move you to the next word or letter chunk, or treat space like any other key when it really isn’t. And when you make a mistake, they just deduct points and move you on to the next key. In TypoDefense, when you finish a word, or for drilling’s sake a jumble of random letters, you have to press space to move on. And when you make a typo, it “jams” your ability to fire, and you have to press backspace to fix it. Figuring out that a typo needs to jam your ability to fire was enough to work the rest out from. You’re already at a keyboard, so the act of playing the game, typing out what you see, is now trivial, or at least much less of a barrier. And if you can type what you see while you’re busy solving problems in the middle of a game, typing out your own thoughts should come a lot easier too.
So maybe when making games that teach math, or any subject, it’s important to start from the mistakes and failures one can run into while learning, and to reflect them into the game properly. You have to be able to fail in the same way, run into the same problems, and fix them the way you would have to for real. The path back from a mistake shouldn’t be blocked or replaced with a penalty. It should be the same path, or as close a reflection of it as you can get. Even though a typo “jams” the ability to fire, it doesn’t stop the player from making more mistakes. They can pile those right on, just like in real typing. The punishment still had to be gamified though, right? You can’t have a game if all that happens is the problem sits there and stares back at you. And that could even be a benefit of gamified learning. It could add a safe environment to get more comfortable with making mistakes and failing, and to retry harder with intent instead of just going through the motions.
Try it yourself below. Click to start, put your fingers on the home row, and see if you can get through the first lesson without looking down at your keyboard.