![]() StartingPoints Aliases (info) Referenced by Homepages
|
SGF file
Keywords: Software
SGF is an abbreviation for Smart Game Format, which has become a common file format. The SGF file format is designed to store game records of board games for two players. It's a text-only, tree-based format. Games stored in SGF format can easily be emailed, posted or processed with text-based tools. The main purposes of SGF are to store records of played games and to provide features for storing annotated and analyzed games (e.g. board markup, variations). Most Go servers are able to send you an SGF file of a game you played. SGF files are used by many Go editing programs and are even used on rec.games.go. Sensei's Library also uses SGF files - all the diagrams on SL can be downloaded as SGF simply by clicking on them (see How Diagrams Work). Links
DiscussionFrs: What is the easiest way to merge two sgf files into one sgf file? The resulting sgf should contain all comments etc. from both sources. I have added comments, board markup and variants to a sgf file. My opponent has done the same. Our comments etc. are not identicial, but they are based upon the same game. Arno: As far as I know there is no such software. I looked around for something similar about a year ago and did find nothing. Benjamin Geiger: I am currently writing a sgf Python parser. How common are FF[1]-[3]? Are they likely to be encountered, or is FF[4] exclusively dominant? Is it worth the extra time and code required to load, or generate, the old formats properly? Arno: If you are writing a general purpose parser you will find no way around FF1-3. It is still in use. Heck, people still use 10 year old GoWrite 1, which produces faulty FF1. Benjamin Geiger: On the second thought, maybe I'll just use the one that's already out there...
This is an example of a tsumego problem in sgf files format. Please note that this example comes from
( ;GM[1]FF[3] RU[Japanese]SZ[19]HA[0]KM5.5 PW[White] PB[Black] GN[Copyright goproblems.com] DT[1999-07-21] SY[Cgoban 1.9.2]TM[30:00(5x1:00)] ;C[Black to play and live.] AW[bb][cb][cc][cd][de][df][cg][ch][dh][ai][bi][ci] AB[ba][ab][ac][bc][bd][be][cf][bg][bh] (;B[af];W[ah] (;B[ce];W[ag] C[only one eye this way]) (;B[ag];W[ce]) ) (;B[ah];W[af] (;B[ae];W[bf];B[ag];W[bf] (;B[af];W[ce] C[oops! you can't take this stone]) (;B[ce];W[af];B[bg] C[RIGHT black plays under the stones and lives]) ) (;B[bf];W[ae]) ) (;B[ae];W[ag]) ) This is a copy of the living page "SGF file" at Sensei's Library. ![]() |