SVG Go

a simple Go-state display script by Nicolas Kruchten

This little script was my way of learning how to play with server-side SVG generation and interactive SVG graphics. It's a simple Go engine. There is no AI, it can just show game-states. All of the state information is stored in the URL, so that's all one needs to have in order to 'save' a game. At the moment, the script cannot determine the winner, so that would have to be done manually. A potential way to use this script would be to play a move, then email the URL to the other player. She plays, then emails the resulting URL back. Rinse & repeat until you both decide the game is over.

In order to have a decent-length URL, I gzipped the gamestate string. It compresses nicely because it only contains a few characters, repeated over and over.

If you do not know what Go is, check out the Go Wikipedia entry.

You will require an SVG-capable browser to view this script, your browser will prompt you to download a plugin if you don't have one yet.

 

Creative Commons License
This work is licensed under a Creative Commons License.