Just a quick update on my previous post on gamifying the problem-solving process in high school algebra. I had a little time to spare (on an airplane flight, of all things), so I decided to rework the mockup version of the algebra game into something a bit more structured, namely as 12 progressively difficult levels of solving a linear equation in one unknown. (Requires either Java or Flash.) Somewhat to my surprise, I found that one could create fairly challenging puzzles out of this simple algebra problem by carefully restricting the moves available at each level. Here is a screenshot of a typical level:

After completing each level, an icon appears which one can click on to proceed to the next level. (There is no particular rationale, by the way, behind my choice of icons; these are basically selected arbitrarily from the default collection of icons (or more precisely, “costumes”) available in Scratch.)

The restriction of moves made the puzzles significantly more artificial in nature, but I think that this may end up ultimately being a good thing, as to solve some of the harder puzzles one is forced to really start thinking about how the process of solving for an unknown actually works. (One could imagine that if one decided to make a fully fledged game out of this, one could have several modes of play, ranging from a puzzle mode in which one solves some carefully constructed, but artificial, puzzles, to a free-form mode in which one can solve arbitrary equations (including ones that you input yourself) using the full set of available algebraic moves.)

One advantage to gamifying linear algebra, as opposed to other types of algebra, is that there is no need for disjunction (i.e. splitting into cases). In contrast, if one has to solve a problem which involves at least one quadratic equation, then at some point one may be forced to divide the analysis into two disjoint cases, depending on which branch of a square root one is taking. I am not sure how to gamify this sort of branching in a civilised manner, and would be interested to hear of any suggestions in this regard. (A similar problem also arises in proving propositions in Euclidean geometry, which I had thought would be another good test case for gamification, because of the need to branch depending on the order of various points on a line, or rays through a point, or whether two lines are parallel or intersect.)

### Like this:

Like Loading...

*Related*

## 46 comments

Comments feed for this article

18 April, 2012 at 5:15 am

Nets KatzTerry,

I’m interested in this for what I suspect are similar reasons. It’s good work!

I don’t have any good suggestions for how to deal with branching beyond the trivial one. (Aren’t all square roots simultaneously positive and negative?) It seems a gamified version of completing the square to derive the quadratic equation, or of factoring in more generality could be interesting. Is it important that the order of the factors doesn’t matter?

As to geometry, I could claim it is already gamified, though not as restrictively, by Geometer’s sketchpad. Only certain kinds of moves are allowed and you want to build a robust construction. Sketchpad deals with branching of course. The user selects which point on the intersection of two circles he wants.

Nets

18 April, 2012 at 6:06 am

kevinjardineIt is common for puzzle games to have multiple solutions. Perhaps you could have a square root function that randomly returns one or the other root at any given time. You could leave the fact that the puzzle allows multiple solutions as something for the student to discover for himself/herself either by attempting to solve the puzzle more than once or by discussing the problem with others. It would be interesting if solving the equation reveals the next step in a path to a secret treasure (with different solutions creating different paths), and so depending upon the solutions arrived at, two students playing the game might discover that they have followed different paths and won different treasures.

18 April, 2012 at 5:23 am

CrustLooks great! I’m definitely going to show it to my kids. The following is the key:

One comment: in level 11, it seemed a little painful, as at the end I had to click “subtract 1″ 256 times, though perhaps I missed the point of the problem.

18 April, 2012 at 6:42 am

anonI think the point is using divide by 2 to make the numbers smaller (temporarily making the coefficient of x a small fraction). Use subtract 1 a few times, then use multiply by 2 to return the coefficient of x back to 1.

18 April, 2012 at 7:20 am

CrustD’oh! Thanks.

18 April, 2012 at 5:29 am

CrustPS Assuming I haven’t missed anything, I’d suggest adding a “subtract 50″ or similar sprite to level 11.

18 April, 2012 at 6:41 am

cammclemanYup, you missed something! Level 11 was my favorite.

18 April, 2012 at 7:06 am

Dan LI really like your implementation of the restricted moves idea. I think it moves away from the goal of teaching basic algebraic manipulation and into a true puzzle game, albeit one that uses and teaches actual math skills. I think that this (along with the troubles with quadratics) points to the idea that we don’t necessarily need one good “algebra puzzle game” but rather a wide array of mathematical puzzle games.

Ironically, I think that the visual nature of geometry makes geometry proofs difficult to gamify, in the sense that a geometric diagram is always telling you things that may or may not be true. (e.g. “This figure not to scale.”) On the other hand, I think propositional logic proofs could be gamified pretty easily (although I don’t have high hopes for how fun such a game can be).

18 April, 2012 at 7:12 am

anonTo prohibit “cheating” on some levels, I suggest adding a restriction of 20 moves.

18 April, 2012 at 7:30 am

anonCorrection: 30 should be enough (I can do level 11 in 22 moves.)

18 April, 2012 at 9:10 am

Dan LMost modern games let you “pass” a level even if you do it inefficiently but also draw some distinction between passing it efficiently or inefficiently. That seems especially appropriate for this sort of game.

[This feature is now added to the game - T.]18 April, 2012 at 7:24 am

UlrikMichael Beeson has argued (see http://www.michaelbeeson.com/research/papers/ConstructiveGeometryLong.pdf) that Euclidean geometry can be done without disjunctions. In fact, the only Proposition in Euclid that requires disjunction is Book I, Prop 2 (rigid compass can be simulated using a collapsible compass), but then you simply take the rigid compass as axiomatic instead!

18 April, 2012 at 7:54 am

Pablo LessaMaybe something similar can be done for (algorithmic aspects of) Calculus? For example the puzzle might be an indefinite integral and the available moves would be applications of integration by parts or substitution. No disjunction seems to be required (but an undo button would be nice!).

18 April, 2012 at 8:02 am

monsieurcactusIn the beginning of abstract algebra class, we have to prove frustrating things like 0a = a0 = 0 and (-1)(-1) = 1. This is also like a game.

The set of possible “statements”, left = right, are transformed using the group or ring axioms. A “proof” is a path from a tautology to the theorem statements. I always wondered how equivalent different group theory proofs were and if we can “deform” one proof into another.

18 April, 2012 at 8:09 am

John CherniavskyRegarding logic games, the Logical Journey of The Zoombinis is a nice game imparting logical thinking though not formal propositional logic.

18 April, 2012 at 8:15 am

monsieurcactusI really enjoyed the game. Even though I could solve the equation by hand, I had to think about which sequence of moves to make and whether I used the least moves possible (or at least minimal) in some sense.

18 April, 2012 at 8:18 am

AnonymousI broke level 6 :(

18 April, 2012 at 9:57 am

jedharrisGreat stuff.

I very much like this perspective because it makes clear that doing math is solving inverse problems. Often the way math is presented, we only see the forward version — a completed proof — so the goal oriented reasoning, the set of possible choices at each step, and so on is invisible.

Terry’s description, and his games, make the moves and the reasoning the focus, which is as it should be. (This suggests that the moves could be recorded in a “tape” which when one is done would be a little proof.)

Now, I’d like to have all math domains recast as sets of moves one can make, along with advice about how to pick them in different cases.

Often Terry’s pieces have this flavor already. I think always talking this way would make math much more accessible and fun. Most of “mathematical intuition” is a sense of the set of applicable moves, and how to choose among them to create a useful path.

One important point implicit in Terry’s previous post: We all make mistakes along the way. So part of the skill of math, programming, etc. is how to detect and correct errors. Often one chooses sub-problems to solve along the way because the results are fairly easy to “sanity check”. In programming test-driven development makes this central; I don’t know if there’s any equivalent style of math.

I think the game style can easily incorporate this point — one encounters dead ends or makes wrong guesses, then has to back up. I’m less clear on how to help students learn good skills for how to check and correct for errors, but the game format makes errors expected and OK.

18 April, 2012 at 11:32 am

mttpdWhat do you think about the tests available here: http://www.tradertest.org/ ?

18 April, 2012 at 4:12 pm

walkerjianHi Terry

Here is another take on computational geometry as a game

http://www.tomshardware.com/news/Minecraft-Calculator-Graphing-MaxSGB-Scientific,15109.html

Kind of min blowing no?

ps: whilst coding your game in java and flash is admirable dare i suggest that javascript and webgl/html5 may be a better way to go

http://www.khronos.org/webgl/wiki/Main_Page

http://www.khronos.org/webgl/wiki/Demo_Repository

cheers

ian walker

19 April, 2012 at 10:52 am

Shinku baraSugoi, KawaiiIii, dai-dai-daisuki desu

Sensei Tao, Arigatou

Thank you so much for this game

19 April, 2012 at 11:30 am

Ryan ReichThis is a great game. After getting through a few levels with trivial arithmetic, I hit one where I looked at the options and thought “why would I multiply by 3? I’d rather just subtract that constant”. When I realized that the only addition option was to subtract a multiple of 3, it made sense. Same thing happened when I got to the one where I’d have to subtract 1 256 times and I finally acceded to the division option even though it created a horrible decimal in front of x. It’s an unnatural strategy but it forces the player to think about their mathematical options, and of course, in the context of a higher-order equation or a system, sometimes these “counterproductive” options are the best general method of simplifying.

19 April, 2012 at 12:03 pm

AnonymousI’ve never had a chance to use the software, but, based on their book http://www.amazon.com/Logical-Reasoning-Diagrams-Studies-Computation/dp/0195104277, the Hyperproof environment described in the article on heterogeneous logic has a nice, albeit fairly overtly formal, approach to dealing with disjunctions that could perhaps be adapted to this setting.

19 April, 2012 at 10:28 pm

Uwe StroinskiIn version 2.1 some of the bubbles overlap, so that one cannot read their content.

Great idea. A game like that for higher degree equations would be a tremendous help for teachers.

[Corrected, thanks - T.]20 April, 2012 at 2:39 pm

Ryan ReichIn reply to the correction: at least in level 6, they still overlap — and the one that’s blocked is the question.

[Oops, I guess I didn't playtest the previous correction thoroughly enough. Hopefully this time will do the trick - T.]20 April, 2012 at 2:22 am

AnonymousJust want to chime in and say this is a great idea. So much so that it spurred me to start thinking about a massively multiplayer maths game; imagine an simple RPG where you start off as a weak character, and as you encounter enemies in the world, you have to solve mathematical problems to defeat them. In the starting area, you might have simple linear equations to solve, and as you get stronger, you’ll have to contend with polynomials, simultaneous equations, so on and so forth.

Boss creatures are extra hard and you need to collaborate with your team mates to solve the problems; but as a reward you get special gear and in-game equipment as a reward, not to mention unlocking new areas of the game.

Any subject could be added to this game, it needn’t be just basic arithmetic and algebra. Dare you and your friends tackle the Forest of Logic and Sets? Do you have what it takes to climb Mt. Calculus?

Of course, there will come a point where subjects go into theorems and proofs and that will not be something that could easily gamified, but for anything that can be solved as a problem, there’s a lot of ground to cover.

23 April, 2012 at 7:13 am

Dan LWhile the game you are describing is not a gamification of mathematics in the sense Professor Tao describes, it could be awesome with the right implementation. The important part of the game would be the instructional part, where you are taught how to solve problems. The cool thing is that running around finding people to teach you things is already a big part of RPG game mechanics. (But I’m skeptical about the multiplayer component. It’s true that collaboration makes math problems easier, but it is extremely difficult to *force* collaboration.)

20 April, 2012 at 2:06 pm

anonmathJust a sidenote: Algebraic manipulation in a form of game can be interesting to people even after they leave school, if it is wrapped up in something they find intriguing. For instance, there is a little game I programmed 5-6 months ago, based on Landau’s license plate game (http://dau.etf.ba/). More than a few college students interested in mathematics, puzzles or history of science found it interesting – and although the edu games have the students as their primary target, it shows that secondary targets can have their share of fun too.

21 April, 2012 at 7:11 pm

Lewis Carroll logic puzzles « What’s new[...] types of logical argument (and one of the few that avoids the disjunction problem mentioned in the previous post), namely the Aristotlean logic of syllogistic reasoning, most famously exemplified by the classic [...]

21 April, 2012 at 7:20 pm

JonesMathAs you pointed out, the game is currently more of a puzzle of how to use an arbitrary set of operations in order to solve for than a game that would help students efficiently choose operations to solve a linear equation.

What if you put in operations that were closer to what a student might actually try? For example, for the problem , why not have the option to add 7 and subtract 7? If they make the common error to subtract 7, it will be readily visible to them that subtracting 7 in fact does not help to isolate . Several rounds of a problem like that and I imagine students would pick up pretty quickly that they need to use inverse operations rather than the same operation in order to “get by itself.” You could also have an option to multiply by 2 and divide by 2. Perhaps even add 11 and subtract 11.

You would be able to use the same approach for problems like . Have the option to add and subtract , as well as the option to add and subtract .

For the above two types of linear equation solving, I think the program would work well. However, I feel the game wouldn’t be able to adequately handle problems that require simplification before solving, e.g., problems like or . Such problems require students to perform an initial operation before using an inverse operation to solve [Of course, you could still just use inverse operations to solve, but then the student misses out on identifying and using the distributive property and recognizing and combining like terms].

When I see students make mistakes with linear equations, it is not usually what inverse operation to use that is the problem (equations with a term like being the exception). Usually, the problem is with (like you pointed out) carrying out several arithmetic operations without error. Other problems that crop up are distributing errors (e.g., ) or performing both inverse operations on one side of the equation (e.g., for , adding 9 to the 2 and the -9). Unfortunately, a game as outlined above would have difficulty helping students improve in these areas.

It’s my own opinion that it is extremely difficult to computerize or ‘gamify’ mathematics beyond memorization and practice of basic addition/subtraction/etc. facts. Even when dealing with introductory mathematics such as linear equations, and especially when creating a game that approaches the math in terms of strategic moves rather than “Solve this math problem, enter a numerical value, then hit enter,” there are numerous considerations and limitations that I think take away from the student’s learning experience. For example, consider the following questions:

– If arithmetic is still a significant hindrance to students working on this level of math, should we really being doing all the operations for them?

– If we choose to do the operations for them, should we show the operations being done instantly (students wouldn’t be instantly doing the arithmetic) or should we include an animation that shows how these operations are affecting the current equation?

– If we don’t do the operations for them, should we provide them with an in-game calculator to do operations?

– How much additional help should we code into the game so that players don’t get significantly bogged down by the arithmetic when that’s not the point of the game? How much will the game be limited for students with mediocre or poor arithmetic skills?

I mean, these questions are just the tip of the iceberg. Considering, answering, designing, and coding all of the answers to these problems would be a huge undertaking. Yet, all of the above would be necessary to make a game accessible to students from highly variable math backgrounds.

And even if you do answer all of the above questions, and design a perfectly accessible game, you still have the problem where students are practicing math in a medium that is not conducive to doing higher level math. Ultimately, mathematics on a computer is tantamount to mental mathematics. The big difference is that now the computer is responsible for keeping track of the steps, rather than the student. As students progress beyond linear equations, they will be responsible for more and more steps, each one of which can throw a wrench into the problem and cause a final solution to be incorrect. Take a look at any basic calculus problem and count how many steps an average student might take to solve it, including arithmetic, rearranging terms, simplification, key insights to solving, etc. I think you’d be surprised just how many of those steps are required to be automatized lest the problem (even simple problems) be a significant affair. By letting a computer be responsible for keeping track of these steps (and, in fact, doing some of these steps!) at an early level, you limit the practice of a very important skill necessary for that student to make any progress towards higher mathematics.

I have yet to see a math learning program that deals with subjects beyond arithmetic that has any educational value (although some might have entertainment value to players that already have a firm grasp on the subject, such as game you’ve created). I feel it would be almost impossible to address the above issue about the computer being responsible for keeping track of all the steps required to solve the problem. However, I would love to be proven wrong, as I feel games in general have a certain motivational element to them that would be indispensable to learning new material, such as math. It would definitely be a great resource for my future students (if I ever get offered a job, that is! Come on schools, hire me already!).

22 April, 2012 at 1:46 am

anonmathBug report – floating point mess.

[Hopefully fixed, thanks - T.]22 April, 2012 at 5:37 pm

Jeff VanderKamMy kids loved it–thanks! I certainly agree with your complaints about quiz-based math “games”, we’ve been very disappointed with those. But this one appealed to them in a nice puzzle-solving (almost Angry-Birdsish) way. It was great to hear my 6th grader excitedly yell “I got it!” when he solved #12.

Any chance you could make it randomly generate new ones? If it were to start with a value for x, pick three or four simple operations, and randomly walk backwards 10 steps, how hard would the resulting problem be? Or is that about what you did to create the problems in the first place? I guess keeping the problems integral is a constraint, and having related operations (like both multiply-by-3 and divide-by-3) might make for more interesting setups.

23 April, 2012 at 6:18 pm

Terence TaoJeff, thanks for the feedback! I quickly wrote up a variant of the game at http://scratch.mit.edu/projects/teorth/2491144 which has 12 random levels instead of 12 preset levels, with the n^th level requiring n moves to solve. I found that things began to get a bit tricky around level 6 or so if one wanted to stay strictly under the n move limit…

23 April, 2012 at 7:16 pm

Ryan ReichI like the SUPER speed bonus :) Any way of getting the decimals rounded to, say, 4 places (at least for the display; internally you probably want maximum precision)? The question box can get quite fat.

It’s fascinating what state of mind these puzzles put me in. I forget entirely what the numbers

areand think only about how they can bedefeatedwith the weapons I’m given. I learn quickly to mentally separate x from the constants and deal with it first. I’m encouraged to think many steps ahead. I am constantly reminded that subtraction is addition of the negative. When “add” and “subtract” options are presented asymmetrically along with a “negate”, I start thinking about the number line as a way to understand the possibilities. I lose all shame talking about something I’ve known since I was eleven as though it were difficult and profound :)It’s interesting to me to hear that kids love it; it’s a very smart game, almost too smart. But it’s not smart in the way that you can’t make progress even if you are unable to see the whole solution, so it’s not frustrating. (Alternative explanation: Jeff’s kids are very smart.)

[Now rounded to four decimal places in the display - T.]24 April, 2012 at 10:01 am

Dan LI love the latest version of the game. The game mechanics are great. All it needs is a snazzier interface and an upgrade to fractions rather than decimals, and this thing is ready for the app store.

23 April, 2012 at 9:54 am

CrustI agree that in general case-splitting makes it challenging to present a friendly interface. But for the special case of quadratic equations, I don’t think it’s bad at all.

I think the best way to first learn about solving quadratics is by completing the square. The key point is that once you take a square root, you need to do the same steps in both cases. So e.g. if you have:

(x-1)^2 = 4

and the gamer presses a “square root” button, the equation would transform to:

x-1 = 2 OR x-1 = -2

Then after pressing a “add1″ button it would become:

x = 3 OR x = -1

For more general problems, you would need to distinguish between “add 1 to left equation” and “add 1 to right equation”, which gets clunky especially considering that the number of equations is changing. Perhaps the best way to handle it would be for the button to ask you which equations it should be applied to via a pop up. But for quadratic equations, you don’t need this.

PS the game was a hit in my family!

7 May, 2012 at 7:30 pm

Nice Mental Mathematics photos | Learning Jigsaw[...] inter-visto issue ]. Gratis!An Introduction to Vedic MathematicsAn Introduction to Vedic MathematicsNew version of algebra game var analyticsFileTypes = ['']; var analyticsEventTracking = 'enabled'; var _gaq = _gaq || []; [...]

15 May, 2012 at 8:02 am

dweesI really liked this game, thank you for sharing. What I appreciated about it most was that you sometimes gave algebraic tools that didn’t solve the problem in a deterministic way; which requires students to think about what the tools do. I also like the “number of moves” metric, as opposed to the “get so many points” metric.

I think the game needs a few more levels, but of course I recognize how difficult that is. I wonder, would you mind if I borrowed the concept and tried to create a HTML 5 version of this game?

15 May, 2012 at 1:02 pm

Terence TaoYes, I would like to see this sort of idea developed in other platforms, so I am happy to grant permission to use the concept for this purpose.

15 May, 2012 at 9:15 am

Rob OI stumbled upon your blog post via a Google+ share for this algebra game a couple of weeks ago, and was quite taken by the game’s concept. I have a daughter in fourth grade, and some ideas she is learning are enough like algebra that I have tried to instill some algebra into her, and think that such a game as this would be wonderful.

I see that another commenter has already thought of porting this to HTML 5; I came to ask if you wouldn’t mind my porting the concept as an Android app? Being an educational tool, I would have no plans for commercializing it should I release it on the Android market (I’ll release it for free), and I would certainly credit you.

15 May, 2012 at 9:21 am

dweesYeah, I should clarify that as well. I would not build the HTML5 as a money maker, but more as a tool to give to students to learn.

13 June, 2012 at 12:24 pm

Dan LProfessor Tao, this game looks like it is very much in the spirit of what you are talking about (though quite different from your game). I plan to buy it today and see if it lives up to the hype:

http://www.wired.com/geekdad/2012/06/dragonbox/all/

15 June, 2012 at 12:00 pm

AnonymousI have made a variation of first Terry’s algebra game.

15 June, 2012 at 12:00 pm

Anonymoushttp://scratch.mit.edu/projects/dussau/2613929

8 August, 2012 at 5:23 am

Rob OI’m reporting back that I just released the android app game version based on this concept that I asked permission for earlier. It is available on Google Play for free:

https://play.google.com/store/apps/details?id=com.oakonell.findx

I created some more levels, and intermixed them with Terry’s original ones. It is difficult to come up with good levels, with a meaningful progression between them.

I also allow the users to create their own levels (in a way that guarantees a solution, even if an optimal one is not findable due to the possible large search space) and share the levels with others.

Give the game a try, and let me know of any comments or suggestions!

13 September, 2012 at 12:24 am

Dave TaylorSolid game, man! Some of the solutions have a whiff of control theory on em. Feels like you’re sorta honing in on a target. I think all it really needs is a new title: “Algebra By Computational Iteration: Mark 3.14159…”

The pacing’s a little rough on mere morons like me, though. I’d consider allowing any number of moves but awarding bonuses for using fewer moves, and some ignoble awards for using a ton of moves, and even allow them to finish close but not quite, with a dubious achievement for their mad low-precision skillzors. ;)