Utility for sgf files: sgfutility

1. General information


The files containing GO problems (tsumego) are sgf files. The greatest site is obviously www.goproblems.com.

I use these problems on my Palm device. I am using Pilotgone. Other people use software on PocketPC. Other people use software on mobile phones. It's a great way to solve GO problems in our spare time!

However, there are some issues:

  • some files don't comply with the .sgf format, so PilotGone (or other software you use on your mobile device) does not display them correctly;
  • in some files, some mandatory tags are missing (like SZ[19])
  • most of the problems use only a small portion of the board. On the mobile device the software is displaying the full board, and the stones' dimmension is small; we have to use zoom.

Sgfutility solves the following:

  • Replace White's player name with filename.
  • Replace Black's player name with problem type.
  • Replace date field with difficulty and player to move.
  • Apply auto correction (correct some format issues).
  • Rotate the problems on 19x19 boards to top-left corner.
  • Resize 19x19 boards to optimal size.
  • Change line separator to CRLF (usually you won't need this).
  • Remove players' names, the tags PB and PW (usually you won't need this).

After this operation, I can sort the problems on my Palm based on problem type, difficulty and I can view them at a bigger scale (the boards are resized and rotated to top-left).

Enough with talking. Here are some samples:
00009.sgf (original)

00009_result.sgf (result)

00137.sgf (original)

00137_result.sgf (result)

2. Usage


No need to install! Just download and unzip in the folder with the problems (sgf files). After that, run _runme.bat. You will be asked next what to do with the problems.

Download it from here: sgfutility.zip

3. Other issues


If you have suggestions, questions or anything else, please contact me at nicolae.m.popa@gmail.com.