GO Tools

SGF Summarizer: sgfsummary.py

version 1.0 (2000-03-26)

Homepage: http://gotools.sourceforge.net

Copyright (C) 1999-2000 David John Goodger (mailto:goodger@python.org; davidg on NNGS, IGS, goclub.org). sgfsummary.py comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it and/or modify it under the terms of the GNU General Public License; see the source code for details.

Description

This program reads multiple SGF (Smart Game Format) files, specifically those recording Go/WeiQi/Baduk games, and summarizes their game information to standard output. The output is a tab-delimited table with one line (record) for each input SGF file. The first line of the output contains the column headers (field names). The output is suitable for importing into a spreadsheet or database package for storage and manipulation.

The output consists of the following fields:

Date & Time*    Result          Black           B Rank    
White           W Rank          Komi            Handicap
Board Size      Time            Filename        Game Name
Place           Event

* The Time information is extracted from a standard IGS filename of the form "white-black-DD-hh-mm" or NNGS filename of the form "winner-loser-YYYYMMDDhhmm", where "hh" and "mm" give the time when the game was played. If the filename is not in this format, no time information will be produced.

Usage

sgfsummary.py [-c] source_dir_path

Arguments:

Under MacOS, the user will be interactively prompted for the source folder, whether to enable SGF collections, and to specify a save file.

Return to the SGF Summary main page

Return to the Go Tools main page

Go Tools project page

Project administrator: David Goodger

page last updated: 2000-03-26

SourceForge
Hosted by SourceForge.net

123count.com : counter and tracker