Pages

Sunday, July 24, 2011

Doodle Jump Math


If at some point in this post you don't say "that's a bit of a stretch," I will not have done my job here.

I got an iPod Touch for work this summer. Despite being aggressively pro-tech, my personal tech level is loooow. No cell phone, no iPod, no iPad, no video game system ... ridiculous, really. But I'm working with Alejandro Montoya, a computer science grad student, this summer (following my colleague Char Beckmann) as he develops a cool iPhone quadratics game. (Due in the app store for free any day now.)  One of the problems was a ridiculously low number of devices, so, time to invest. My colleague Paul Yu and I have an NSF proposal in to equip a classroom with iPod Touches (among other tech) and I'm a believer in really using things before asking students to do so. Paul and Dave Coffey use their iPhones well to support their class.

While developing the game, Jon Engelsma, director of my university's mobile development lab, wanted the game to use more of the iPhone specific capability. Each phone/pod is equipped with an accelerometer - which is why it can detect orientation and movement like tilting.  In response, Alejo added a new aspect to the game where you're making the parabola in the air to show orientation. But along the way, Jon mentioned Doodle Jump as an example of a game that used it well. "Oh, only 99¢," I say.

Ruh roh.







At the time of writing this, I'm at a high score of about 20,000. I swear I don't use real time to play, just moments where I'm stuck somewhere.

There's math in that game?

My son asked that in surprise. As Alejo mentioned to some of the high school students playing ParabolaX, there's a LOT of math in programming and game design. Frank Noschese has written so much good stuff on the physics of Angry Birds. Doodle Jump has that. I've thought about how far up and across you can get on a jump, use constant speed estimation of moving platforms, etc.  But other than doing some modeling (which would be interesting I think) of the jumps, there's not a lot of explicit math for players. There is, though, an understanding that the game is on a cylinder (go off the left, return on the right, etc.). That's made me wonder if anyone has developed an iPhone game that really uses the accelerometer to explore topologically interesting surfaces. A Möbius maze that you navigate with the accelerometer? A Klein bottle version of Othello? Who knows where that could lead.

There's math in that game
The Common Core State Standards Mathematical Practices:
1. Make sense of problems and persevere in solving them.
At its heart, like many games, Doodle Jump is a big problem (get as high as possible) composed of smaller problems (how do I get past the pink monster reliably). My perseverence, like most students, is very high for games.

2. Reason abstractly and quantitatively.
The constraints are simple: you can't stop jumping, and if you land on nothing or bump into an obstacle, game over. There's not much quantitative reasoning, unless you're fixated on a score. Then there's some nice linear programming on the fly to figure out how to improve your score and what's required. I have wondered why, being extremely right handed, I seem to be better with my left on this game.  Specific game questions too, like why don't I see rocket packs anymore?

3. Construct viable arguments and critique the reasoning of others.
Hasn't happened for me yet, because I haven't discussed the game with anyone other than my son, who's even more of a novice than I am.  But there's definitely opportunity, as we've discussed: Does a back lean enable higher jumps? That's my son's conjecture but I haven't experienced it yet.

4. Model with mathematics.
Also not yet. Though I am interested in trying to model the jumps, and I'm curious about how to even start.  There's good reason to measure to improve your game play, but the modeling is the kind of idle mathematical reasoning that mathematicians love. I'd also love to know how the accelerometer data feeds into the shape of the jump. Constant horizontal velocity if tilted or does it depend on the angle of tilt?

5. Use appropriate tools strategically.
Not yet. But the modeling will definitely be helped by mathematical tools.

6. Attend to precision.
Hmmmm. Kinesthetic precision is definitely required. It matters how you move and how much. The engagement of this again has me wondering how to make math more kinesthetic more often.

7. Look for and make use of structure.
Very rich context for this. Even at my lower levels, there are many patterns to notice, and noticing them is crucial to survival in the game. 

8. Look for and express regularity in repeated reasoning.
I think it's a new thought to me that this is a crucial part of video games, and I want to use this connection in math class. The skills required early on become automatic and no longer a problem. This is just natural as you get better, you gain automaticity with tasks that used to require thought. Even though you may make occasional mistakes.  Does that describe math or video games?

What am I learning about teaching?
Half of learning about teaching is learning about learning.  This game has been good for me to think about because I'm not very good. There was a brilliant teacher educator at Siena Heights, Sr. Eileen Rice, required her advisees to take a class in a subject with which they struggled.  Great idea. Just like with a math problem, we can't problem solve if it's too easy for us.  It's struggle that affords an opportunity for growth.

In the game I've had to figure out specific challenges, wonder about how things worked in general, identify areas where I need improvement, and make some realizations about my limitations. I can not shoot effectively. My videogame dexterity and reaction time is probably below average.  But I've had nice moments of achievement. Figuring out how to get past a few beasts, then that I can jump on them, specifically working on using the cylindrical aspect, etc. Things I couldn't do before that I can do now.

The other half of learning about teaching is tackling the question of how do I support learners? That's the heart of instruction to me, and what motivates gathering data (assessment), giving feedback (evaluation) and problem and resource selection (planning).  This game has made me wonder about all these.

Do I look up directions? Cheats? The game is popular and there are lots of tip sites out there.  Even Doodle Jump cheats. This requires me to think about my purposes. Do I need the highest possible score? Do I want to figure it out for myself? What's the purpose of playing?  Once I was a teacher that told students this information without asking. I was good at it, and got good evaluations, and most of my students did really well on tests. Then I was a teacher that would never tell this information, even if students basically begged for it.  Students did some amazing work, found out things I hadn't known, and most were successful.  But some students were frustrated, including some of the successful students.  Now, I try to assess student purposes and provide relevant information.  But it's harder than having a simple extreme policy.

Wow, I made it through that whole paragraph without mentioning how Khan Academy can be like those tips and cheats YouTube videos. (Shoot.)

Talk. It's also better with other people.  I've been hampered by doing this game alone. Looking at the practices made me think about the richness I'm missing.  I've seen this in Alejo's pilots of ParabolaX also - radical differences in what students get out of the game based on how much they discuss it.  I want a healthy balance for my students between 'let me do it for myself' and 'how are you thinking about it?'

How do I measure success? I like the score as a measure of how far I've gotten, or as a measure of whether I've gotten better. But as I consider that, there's really better things to notice. The game territory changes as you climb, so that's a good measure of how far.  (When I get to the bounce-once platforms currently, that's a good game! In the jungle setting.)  Can I make difficult moves? Have I gotten better at getting better?  It feels like I have better learned how to identify problems in the game and am more efficient at addressing them.

Then I got wondering what the scores even really mean.  Is my high score the best measure of how good a player I am? Should it be my average or median score? Weighted somehow between the two?  If the goal is the maximum score, it encourages high risk behavior that's bad on the average but when it works garners big points.  Score-based thinking also pushes me towards tips and cheats, which are not in my best interest as a learner or enjoyer of the game.  The best use of the scores is a nice mathematical problem, like a simpler version of trying to figure out what are the relevant baseball statistics.  In general, though, it encourages me to go farther in the direction of SBG and portfolios.

So...
If you made it this far, thanks for sticking with the rambling. I'd love to know what you think about this, or other thoughts you have about teaching and learning from games or other odd contexts.

P.S.  Yes the title is a little poke at the now ubiquitous Jump Math, which has some super-proponents. (There are samples at jumpmath1.org)

P.P.S. We need some games this engaging with more math content.  Waker and MangaHigh are a start, but the accelerometer using games will be a big step up.

Image credits: there were no good CC images for this post, so if I used one of yours and you wish it not, just let me know. All images click through to original source.  The ragecomic was too true not to include.

1 comment:

  1. I'd love to learn more details about your game work. I am doing a review of math computer games for a consulting project (though I review and seek them constantly anyway) and the state of the field is ridiculous. I could not find a single intrinsic game devoted to proportional reasoning, for example - though, of course, any complex MMO (with an economy) or a flight game has that component.

    Can we invite your and yours for a live chat for Colleen King's Math Game Design group?

    ReplyDelete