Smart Game Format

Smart Game Format
Filename extension
.sgf
Developed byAnders Kierulf (1987, FF1), Martin Mueller (1993, FF3), Arno Hollosi (1997, FF4)
Initial release1987
Latest release
4
1997
Type of formatmark up text
Container forGo (game) record
Open format?yes
Websitered-bean.com/sgf/

The Smart Game Format (SGF) is a file format used for storing records of board games. Go is the game that is most commonly represented in this format and is the default. SGF was originally created under a different name by Anders Kierulf for his SmartGO program.

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). It is a text-only, tree-based format.

Most Internet Go servers and Go software from 1990 support this format.

About the format

An SGF file is composed of pairs of properties and property values, each of which describes a feature of the game. A partial list of properties appears below.[1]

AB Add Black: locations of Black stones to be placed on the board prior to the first move
AW Add White: locations of White stones to be placed on the board prior to the first move.
AN Annotations: name of the person commenting the game.
AP Application: application that was used to create the SGF file (e.g. CGOban2,...).
B a move by Black at the location specified by the property value.
BR Black Rank: rank of the Black player.
BT Black Team: name of the Black team.
C Comment: a comment.
CP Copyright: copyright information.
DT Date: date of the game.
EV Event: name of the event (e.g. 58th Honinbō Title Match).
FF File format: version of SGF specification governing this SGF file.
GM Game: type of game represented by this SGF file. A property value of 1 refers to Go.
GN Game Name: name of the game record.
HA Handicap: the number of handicap stones given to Black. Placement of the handicap stones are set using the AB property.
KM Komi: komi.
ON Opening: information about the opening (Fuseki), rarely used in any file.
OT Overtime: overtime system.
PB Black Name: name of the black player.
PC Place: place where the game was played (e.g.: Tokyo).
PL Player: color of player to start.
PW White Name: name of the white player.
RE Result: result, usually in the format "B+R" (Black wins by resign) or "B+3.5" (black wins by 3.5).
RO Round: round (e.g.: 5th game).
RU Rules: ruleset (e.g.: Japanese).
SO Source: source of the SGF file.
SZ Size: size of the board, non-square boards are supported.
TM Time limit: time limit in seconds.
US User: name of the person who created the SGF file.
W a move by White at the location specified by the property value.
WR White Rank: rank of the White player.
WT White Team: name of the White team.

There is no strict checking of the contents of these tags, so it is possible to put any text into the result tag for example.

Variations are nested in brackets, and also usually assigned letters. The first branch (variation A) is the main branch.[2] This notation stems from Newick format.

Coordinate system for points and moves

The first letter designates the column (left to right), the second the row (top to bottom). The upper left part of the board is used for smaller boards, e.g. letters "a"-"m" for 13*13.

The author intentionally broke with the tradition of labeling moves (and points) with letters "A"-"T" (excluding "i") and numbers 1-19. Two lower-case letters in the range "a"-"s" were used instead, for reasons of simplicity and compactness.

The upper left corner as origin of the board corresponds to the way most modern computers represent screen coordinates to simplify integration of text and graphics.

Supported games

Games currently supported[3] are Amazons, Ataxx, Backgammon, Blokus,[4] Byte, Chase, Chess, DVONN, Exxit, Focus, Gess, GIPF, Go, Gobblet, Gomoku+Renju, Hex, Hive, Hnefatafl, Jungle, Kropki, Kuba, Lines of Action, Neutron, Nine men's morris, Octi, Philosopher's Football, Plateau, PÜNCT, Quadrature, Reversi (Othello), Sahara, Shogi, TAMSK, Tantrix, Trax, Tripples, Tumbling Down, TwixT, Xiangqi, YINSH and ZÈRTZ. Although not officially supported, the sgf format is also used for Meridians. The standard specifies additional game-specific properties for Go, Backgammon, Lines of Action, Hex, Amazons, Octi, Gess, and TwixT.

Format Versions

The first version of SGF, FF[1], was conceived by Anders Kierulf in 1987. It is Appendix A in his Ph.D. thesis.[5] FF[3] was written by Martin Müller in 1993. The current version of the SGF is FF[4] by Arno Hollosi, and is supported by most current SGF readers. FF[2] was never made public. The format has been published under the Open Content License. Current development status (2016) is "not active".

FF[4] is outdated, but has not been replaced by something more recent. For a description of current usage and some recommendations, see.[6]

Limitations

The FF[4] standard has some problems that make it impossible, or at least unreasonable, to adopt it for large game collections. For some discussion, see.[7]

The fact that there is no standard designation for many properties that one might wish to represent is not really a limitation. The system is extensible, one can invent new labels, and of course that has happened already. After a while, the popular ones among the new labels become standard.

See also

References

  1. ^ "SGF file format FF[4]". red-bean.com. 6 August 2006. Retrieved 2 June 2023.
  2. ^ "SGF - Variations". red-bean.com. 7 January 1999. Retrieved 2 June 2023.
  3. ^ "The SGF format".
  4. ^ "Pentobi/Libpentobi_base/Pentobi-SGF.md at main · enz/Pentobi". GitHub.
  5. ^ "Definition of the Smart Game Format". British Go Association. Retrieved 2 June 2023.
  6. ^ "The SGF Format".
  7. ^ "Notes on the SGF format".

Read other articles:

السنائي معلومات شخصية الميلاد 1080غزنة الوفاة 1150غزنة الجنسية  الدولة العباسية الحياة العملية المهنة شاعر،  وفيلسوف  اللغات الفارسية  أعمال بارزة حديقة الحقيقة  تعديل مصدري - تعديل   أبوالمجد بن مجدود بن آدم سنائي الغزنوي عُرف بالحكيم سنائي والسنائي الغزنوي. ...

 

Ki Mas Jong dan Ki Agus JuMahapatih/ TumenggungBerkuasa1552–1570 Surosowan, Kesultanan BantenKematian Surosowan, Kesultanan BantenPemakamanKawasan Situs Banten Girang, Kota Serang, BantenAgamaSunni Islam Ki Mas Jong dan Ki Agus Ju merupakan kakak beradik yang berperan penting mendukung Maulana Hasanuddin dari Banten saat mendirikan Kesultanan Banten. Beliau merupakan 2 orang yang paling awal masuk Islam di Banten dan berjasa dalam penyebaran Islam di Banten kala itu.[1] Oleh Maulana...

 

قرع على بوابة القصر Der Schlag ans Hoftor الطبعة الأولى من سور الصين العظيم (1931) معلومات الكتاب المؤلف فرانز كافكا البلد ألمانيا اللغة اللغة الألمانية الناشر دار نشر جوستاف كيبنهاور تاريخ النشر 1931 (في سور الصين العظيم) النوع الأدبي قصة قصيرةFlash fiction تعديل مصدري - تعديل   قرع على بوا...

Fictional character from Scooby-Doo Fictional character Velma DinkleyScooby-Doo characterFirst appearanceWhat a Night for a Knight (Scooby-Doo, Where Are You!; 1969)Created byJoe RubyKen SpearsInspired bySheila Kuehl's Zelda K. Gilroyby Max ShulmanVoiced by Nicole Jaffe (1969–1973, 2003) Pat Stevens (1976–1979) Marla Frumkin (1979–1984) Christina Lange (young; 1988–1991) B. J. Ward (1997–2002) Mindy Cohn (2002–2015, 2017) Krystal Harris (2002; singing) Bets Malone (2012; singing) ...

 

Questa voce o sezione sugli argomenti mitologia romana e mitologia greca non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti dei progetti di riferimento 1, 2. Le corrispondenze tra divinità greche e romane sono il segno più visibile di un continuum religioso e culturale tra le popolazioni che hanno orbitato intorno al Mar Mediterraneo e...

 

Santo Ulrico de Augsburgo Ulrico de AugsburgoGravura do santo na igreja de San Martín, em Meßkirch Nascimento 890? Morte 4 de julho de 973Augsburgo Veneração por Igreja Católica Canonização 4 de julho de 993por Papa João XV Festa litúrgica 4 de julho Portal dos Santos Santo Ulrico de Augsburgo (890 - 4 de julho de 973) foi um religioso católico, bispo de Augsburgo e figura importante da Igreja Católica no inicio do Sacro Império Romano Germânico.[1] Ele é conhecido por ser o pri...

Yacimiento arqueológico El Chal Mapa con la localización de El Chal, en el Petén, Guatemala. Entrada al sitio en la selva del Petén El Chal es un yacimiento arqueológico maya precolombino localizado en el valle del río San Juan, en la región sureste del Petén en Guatemala. Se ubica aproximadamente a 30 km al norte del pueblo de Dolores. El Chal fue ocupado por cerca de 1600 años entre 300 a. C. hasta ca. 1300 d. C. del periodo preclásico tardío hasta el posclásico t...

 

Sfinks Agung GizaLokasi di MesirLokasiGiza, MesirWilayahMesirKoordinat29°58′31″N 31°08′16″E / 29.97528°N 31.13778°E / 29.97528; 31.13778Koordinat: 29°58′31″N 31°08′16″E / 29.97528°N 31.13778°E / 29.97528; 31.13778Panjang73 meter (240 ft)Lebar19 meter (62 ft)Tinggi20 meter (66 ft)SejarahBahanBatu kapurCatatan situsKondisiSebagian dipulihkan Sfinks Agung Giza adalah sebuah patung batu kapur berbentuk sfinks y...

 

العلاقات الطاجيكستانية اللبنانية طاجيكستان لبنان   طاجيكستان   لبنان تعديل مصدري - تعديل   العلاقات الطاجيكستانية اللبنانية هي العلاقات الثنائية التي تجمع بين طاجيكستان ولبنان.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتي...

ケアンズ国際空港Cairns Airport IATA: CNS - ICAO: YBCS概要国・地域 オーストラリア連邦所在地 クイーンズランド州ケアンズ種類 公共運営者 North Queensland Airports Group開港 1984年拠点航空会社 ジェットスター航空スカイトランス航空(英語版)標高 3 m (10 ft)座標 南緯16度53分9秒 東経145度45分19秒 / 南緯16.88583度 東経145.75528度 / -16.88583; 145.75528座標: 南緯16度53分9秒 ...

 

CivilizationSutradara Reginald Barker Thomas H. Ince Raymond B. West Produser Thomas H. Ince Ditulis oleh C. Gardner Sullivan PemeranHoward C. HickmanEnid MarkeyGeorge FisherHerschel MayallPenata musikHugo RiesenfeldVictor SchertzingerSinematograferJoseph H. AugustDal ClawsonClyde De VinnaOtis M. GoveDevereaux JenningsCharles E. KaufmanRobert NewhardIrvin WillatPenyuntingThomas H. InceHal C. KernLeRoy StoneIrvin WillatDistributorTriangle Film CorporationTanggal rilis 2 Juni 1916 (1...

 

Відслонення альбдатської товщі крейди(пам'ятка природи) 48°09′42″ пн. ш. 23°45′05″ сх. д. / 48.16194000002777642° пн. ш. 23.751390000027779337° сх. д. / 48.16194000002777642; 23.751390000027779337Координати: 48°09′42″ пн. ш. 23°45′05″ сх. д. / 48.16194000002777642° пн. ш. 23.751390000...

2009 studio album by Broadcast and the Focus GroupBroadcast and the Focus Group Investigate Witch Cults of the Radio AgeStudio album by Broadcast and the Focus GroupReleased26 October 2009GenreHauntology, sampledelia, psychedelia, plunderphonicsLength48:31LabelWarpBroadcast chronology The Future Crayon(2006) Broadcast and the Focus Group Investigate Witch Cults of the Radio Age(2009) Berberian Sound Studio(2013) The Focus Group chronology We Are All Pan's People(2007) Broadcast and th...

 

Animated television series Not to be confused with Hergé's Adventures of Tintin. The Adventures of TintinGenre Action Adventure Mystery Comedy drama Created byHergé (characters)Developed byStéphane BernasconiVoices of (English version) Colin O'Meara David Fox Wayne Robson John Stocker Dan Hennessey Susan Roman (French version) Thierry Wermuth Christian Pelissier Henri Labussiere Yves Barsacq Jeanas Pierre Moulin Susan Roman Theme music composer Ray Parker Tom Szczesniak Composers Ray Parke...

 

Karomama AIstri Raja, Ibunda DewaPrasasti Pasenhor, bukti satu-satunya untuk Ratu Karomama AAnakOsorkon Inama Mesir KrmmKaromama[1] Karomama (A), juga dikenal sebagai Karamat, merupakan seorang permaisuri Mesir kuno. Ia diketahui hanya dari prasasti Pasenhor melalui dimana ia adalah istri Firaun Shoshenq I dan ibunda Firaun Osorkon I.[2][3] Referensi ^ Tyldesley, Joyce. Chronicle of the Queens of Egypt. Thames & Hudson. 2006. ISBN 0-500-05145-3 ^ Dodson, Aidan and ...

2003 studio album by Susumu HirasawaBlue LimboStudio album by Susumu HirasawaReleasedFebruary 13, 2003Recorded2002StudioStudio WIRESELF 2002 Solar VersionGenreAmbientelectronic rockelectronicaprogressive rocktechno-popLength47:21LabelChaos Union, TESLAKITE CHTE-0025ProducerSusumu HirasawaSusumu Hirasawa chronology Philosopher's Propeller(2000) Blue Limbo(2003) Byakkoya - White Tiger Field(2006) Blue Limbo is the ninth solo album by Susumu Hirasawa. Background The dystopian themes of t...

 

山陽本線 > 和田岬線 画像提供依頼:207系X1編成で運行の列車の画像提供をお願いします。(2023年9月) 和田岬線 和田岬線を走行する207系電車(2016年8月)基本情報国 日本所在地 兵庫県種類 普通鉄道(在来線・幹線)起点 兵庫駅終点 和田岬駅駅数 2駅経由路線 山陽本線電報略号 サヨホセ開業 1890年7月8日所有者 西日本旅客鉄道運営者 西日本旅客鉄道使用車両 207...

 

For other uses, see Repton (disambiguation). Human settlement in EnglandReptonReptonLocation within DerbyshirePopulation2,707 (2001 census)[1]OS grid referenceSK3026DistrictSouth DerbyshireShire countyDerbyshireRegionEast MidlandsCountryEnglandSovereign stateUnited KingdomPost townDerbyPostcode districtDE65Dialling code01283PoliceDerbyshireFireDerbyshireAmbulanceEast Midlands UK ParliamentSouth DerbyshireWebsiteRepton Village Website List of pla...

2002 novel by Keith Topping The topic of this article may not meet Wikipedia's notability guideline for books. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.Find sources: Ghost Ship novella – news · newspapers · books ...

 

هذه المقالة بحاجة لصندوق معلومات. فضلًا ساعد في تحسين هذه المقالة بإضافة صندوق معلومات مخصص إليها. تم تصميم هذا التمثيل الأنيق لشبكة النقل بين الكواكب لإظهار المسار (غالبا ما يكون ملتوياً) والذي تعبره عبر النظام الشمسي. يمثل الشريط الأخضر مسارا من بين العديد من المسارات ال...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!