This really has turned into a lame blog, a mere log of running. Where did all my creativity go? Why, to the Dot Game of course!
Actually, that’s not trure either, since I didn’t create the Dot Game, I merely copied it, albeit to a different medium.
What the hell am I talking about? All the important people know, but I’ll tell you.
A few months back I downloaded this simple little game called SameGame to my cell phone, and everyone in the family likes to play it. The idea is that you score by removing groups of two or more connected dots with the same color and removing larger groups give more points. You play until you have no more moves to make (no two dots are still connected). There’s a little trick to scoring high, but I won’t reveal it since it shouldn’t take long to figure it out. The game is so simple my five year old loves to play it (and he’s the one who named it “the dot game”).
And so I did. Took a few nights and more than a few games played on my phone, but overall it was pretty simple. For any programmer types out there, it’s basically a bunch of for-loops. No algorithms to speak of, just dumbly walking through a few arrays. (As a side note, if you’re a web developer and haven’t been turned on to FireBug, you should get the 1.0 Beta version right now.)
So the Dotgame is exactly like the original SameGame,
except for one thing (and my less-than-optimal graphics abilities). At the end of the phone version, you get bonus points for having fewer dots left, but I haven’t figured out the value pattern for that. A few test games shows the following:
If anyone sees the pattern, let me know. I’m sort of slower and stupider these days. [update]The bonus was rather simple.[/update]
Anyway, give it a try. It should work in both Firefox and Internet Explorer, though I’ve hardly tested it all in IE since we’re a Firefox family (I did notice that the board reload is sub-optimal in IE but I haven’t looked into that). I don’t know about Safari or other browsers, and there’s doubtless a lingering bug or two somewhere.