A few weeks ago, I spotted one of my students playing an interesting looking game on his computer, so I asked him about it. Turns out the game he was playing is called Portal (created by a company called Valve), and it’s still a fairly popular game today.

The basic premise of the game is that you have a special kind of gun which can create two portals, and your character can use these portals to travel instantly between two locations in the level. Each level of the game is a 3D puzzle that you have to solve. I decided tonight to look to see if I could find this game online, and I found this interesting 2D version of Portal, built in Flash. To really understand how the game works, I recommend playing it.

Step 1


What I noticed, as I played the game, is that the puzzles are very much logic puzzles. You need to both strategize what a good move will be in the level, and also experiment a fair bit to figure things out. Every time your character dies in the game, you get to try over again to solve the puzzle, and so you get as many chances as you need to try to figure the puzzles out. Some of the puzzles involve a bit of reflexes, and some of them just involve some reasoning.

Step 2


I also noticed that the portals themselves introduce a little bit of topological reasoning to the game. Once you start playing, you quickly realize that two positions in the game are equivalent, if there is an easy way to generate a portal between them. You also learn some tricks like the "infinite loop", where you create two vertical portals which you can fall through endlessly. Sometimes, I felt a little like I was playing Towers of Hanoi (itself a fairly mathematical game) because I would have to plan my moves ahead and choose the order of my portals carefully.

Step 3


The perspective of the 2D version of the game is quite distorted (to allow for more surface area upon which to place one’s portals) and this got me thinking about perspective. "What’s wrong with the perspective in this game?" I thought. "Oh right, that wall and that floor are at the wrong angle with each other." The line of site of the portal gun also reminded me of intersecting lines, and I found myself visualizing the intersection of a wall and a line from my current position, and wondering if I was "going to hit that wall or not."

Step 4


Timing is fairly critical on some of the levels. I found myself occasionally timing how long it took me to do an action, or a series of actions, so that I could time myself to be "in good position" to avoid a deadly (to my character) obstacle in the game. This is a little bit like algebraic reasoning, wherein I work backwards from one time and attempt to calculate (at least roughly) a good time to begin the sequence of actions.

Step 5


I experimented a fair bit, and would systematically move one of my portals a little bit each time, so that I could see how this changed the outcome of my movement through the portals. This is similar to a strategy used to solve some problems (and is a little bit like the scientific method) in mathematics. Sometimes to find a pattern, you have to build up representations in carefully thought out sequences, and the same is true in this game.

Step 6


Portal is challenging like interesting problems in mathematics are. In the game, you can keep trying to work on the puzzle for as long as it takes. The only feedback you get from the game is the progress you have toward completing your goal, or (as often happened to me) your character’s death.

Level completed


You could formalize some of the mathematical ideas that are part of this game, much in the same way that formalization of the use of Angry Birds to teach physics has been done.

I’d be interested to hear of anyone has some others on how this game could be useful in a math classroom, so please share any ideas you have.