Hopefully, the interface should be relatively self-explanatory (see the Wikipedia page linked above for details of the game itself). The Save button produces a string representing the game board; to go back to a previous state, paste such a string into the box and hit Restore. The whole thing should work in recent versions of Firefox, Chrome, Safari and Opera. It won’t work in IE, as that browser doesn’t support canvas.
Thing’s I’ve learnt in doing this:
- The interface to canvas works pretty well, and I’ve not (yet) found any major gotchas between the browsers that support it.
- The game works, glacially slowly, on my iPhone 3G, but the editing (which uses onclick) doesn’t. I might fix this.
The code is up on GitHub.
Update: I’ve added this entry as my first “thing” on Flattr. Be gentle with me.