Thursday, January 3, 2008

Acrophobe!


Everyone needs a coding project over winter vacation, right? Mine started out as a Facebook game called Sentences, where you'd get a random set of words, try to make a sentence out of them, and then vote for your favorite of the ones you friends wrote. I spent a bunch of time collecting word frequency lists and trying to pick words with different frequencies, but in the end the game actually didn't seem like it would be fun. You can try playing against your self here. Anyway, I got talked into writing a simple Acrophobia clone, which actually let me reuse a lot of the code. It still took longer than I'd expected, mostly because PHP is a terrible, terrible language - a lot of weird silent failures, odd object-copying semantics, etc. Anyway, Acrophobe's done! It hasn't been played that many times, so you may encounter some bugs. There's also a notebook with notes from my wanderings, including various word and letter frequency lists. (It was actually hard to find a numeric list of initial letter frequency, so the numbers I'm using for Acrophobe are sort of inferred from the few sources I found.) The app is even hosted by Joyent's free hosting, which was relatively easy to set up and probably more reliable than the server for this blog is. ;-)

3 comments:

  1. Both of my games are stalled due to a fourth party who's AWOL. I guess this isn't an issue if you have lots of friends who are on FB all the time, but couldn't you just add a timeout, or e-mail nagging, or something?

    ReplyDelete
  2. Man how cool is this.

    I'm not on facebook but this just might be what pushes me over the edge...

    ReplyDelete
  3. So, I read this and was thinking to myself that you must be the only person I know who codes things for fun on his time off. I said this aloud to an old college buddy of mine, to which he responded,

    "Umm...I actually code stuff for fun all the time on the weekends."

    I stand corrected, code away, Koosh, code away.

    ReplyDelete