Yay! Programmer art!
Yay! Programmer art!

In A Row Activity in Development for the XO (fancy Tic Tac Toe)

Earlier this month I decided to write my first activity for the OLPC XO laptop since I believe the best way to learn is by doing. Since I have a background in computer games I choose to make a simple game. I decided to write the ever-popular-with-kids game Tic Tac Toe. My primary thought was that if the computer could play Tic Tac Toe then I wouldn’t have to.

As it turns out, writing a Tic Tac Toe game is about as boring as playing one but since I’d already written code to create a grid, draw Xs and Os, and come up with a plan for a grid based computer AI, I decided that instead of dropping the activity all together I’d alter it to allow larger grids and more tokens in a row to win. This would allow playing games like Go-moku which I remember playing against the computer when I was in high school. That was the birth of the In A Row Activity.

The activity is based on the OLPCGames wrapper for pygame which is already installed on the XO. I highly recommend using it if you plan to write a game activity.

In any case, click here to download the In A Row Activity and try it for yourself. You can take a look at a screenshot here. Let me know what you think or if you find any problems.

In A Row Activity screenshot

3 Comments

  1. Posted February 24, 2010 at 9:37 am | Permalink

    Hey there… you mentioned at http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/#comment-477 that you’d made some improvements to the vim debugger plugin.

    I’ve just started using the debugger and have found it quite lacking. Did you publish your enhanced version anywhere?

  2. Posted March 2, 2010 at 12:13 am | Permalink

    I sent a version to the writer of that blog but that’s it. I haven’t used it in a while since I switched jobs and work in ASP.NET now. I’ll see if I can dig it up.

  3. Posted March 2, 2010 at 12:36 am | Permalink

    I looked at the code and can’t really remember what I changed. And I… ahem… perhaps should have commented it better.

    Anyway, you can find it at:

    http://www.exfer.net/files/php_vim_debugger.zip

    Perhaps do a file diff with the other version they have to see what changes I actually made. I don’t plan on supporting it so hope it helps as is. :)

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

For spam detection purposes, please copy the number 6111 + 1 to the field below: