pbm2sgf is a command-line utility written in Perl.

  Add it to your Download Basket!

 Add it to your Watch List!


Rate it!
send us
an update
GPL (GNU General Public License) 
Yves Rutschle
ROOT \ Utilities
If you are both a Go player and a computer user, you must have used, at some point, a computer-based viewer to allow you to replay games easily, annotate them, etc. Go players have developped a file format called SGF, which does all that and more. A good SGF viewer for Unix is cgoban, which is available in all major distributions.

Now, if you are both an e-mail user and a gamer, you may have started playing games on-line using e-mail. A very good server that allows such play is Richard's PBeM server.

The next natural step is to want to archive your play-by-e-mail Go games in SGF. This is where pbm2sgf comes in: it will convert a pbmserv Go summary into an SGF file. Incidentally, it also works with Gonnect, and probably most Go variants available on the server.


pbm2sgf is a command-line utility written in Perl. As such, it will work on mostly any Unix system, and should work on Windows provided you have ActiveState Perl installed (I haven't tried it - let me know if you have any success or failure stories).

Supposing you have saved pbmserv's summary into a file called game.txt, the SGF file is produced:

pbm2sgf game.txt > game.sgf

This is the first version of pbm2sgf. I wrote it in about an hour, while doing something else, and only tested it on a couple of games and only viewing the result with cgoban. Please let me know if something doesn't work for you, or if the SGF is missing information (at the moment cgoban doesn't print the name of the players, although it's in the SGF, but I don't know if it's the file's fault or cgoban's.)

Last updated on August 1st, 2006

#pbm to sgf #pbmserv's summary #SGF file #pbm2sgf #pbm #sgf #Perl

Add your review!