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.




3 Comments
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?
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.
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