Saturday, December 22, 2007

Othello for iPhone/iPod Touch

Since I woke up early today for some unknown reason and couldn't fall back asleep...I took fifteen minutes and made a game of Othello that I wrote ages (okay, six or seven years) ago in JavaScript ready for the iPhone and iPod Touch, since I now have the latter. It may not adhere exactly to the rules of the game when someone runs out of moves, but I wrote it from my memory of the game and not a rulesheet.

It doesn't have different levels of game play, or a polished look, or score saving, or anything like that. But it comes in a very small package and works just fine when not connected to a network. Basically, I only stripped out unnecessary markup, fixed the width to something friendly with the iPhone/iPod Touch's vertical orientation, and made it a single file under 5k (not counting the three images, which total 238 bytes).

Labels: , , ,

5 Comments:

Blogger Palamedes said...

Okay that's pretty cool.. And it works 100% in an iPhone too =) I know this cause I just got one.. heh =p

9:45 PM  
Blogger Frozen O said...

Kick ass! I wondered how long it would take for you to pick one up.

Developing for the iPhone/iPod Touch gives instant gratification, even just using touch screen Safari on your own code. Waiting impatiently for the SDK...

1:48 PM  
Blogger Palamedes said...

Yeah I have to admit the iPhone really does impress me. I was concerned that it was all hype, but it really wasn't..

ANd yes.. SDK will be a good thing.

2:16 PM  
Blogger Kiek said...

I used this url
frozen-o.com/ithello

Well it does not work with the latest version of iphone. It freezes after the first move. I use 1.1.3 iphone version.

1:50 AM  
Blogger Frozen O said...

kiek: That URL doesn't have anything there. You want http://frozen-o.com/misc/ithello/ instead.

7:21 AM  

Post a Comment

Links to this post:

Create a Link

<< Home