Introduction
An .sgf file holds a record of a two-player board game in Smart Game
Format. It stores game records, including annotated ones with variations and markup on
the board. Besides Go, it has definitions for Backgammon, Lines of Action, Hex,
Amazons and other games. The first version was written by Anders Kierulf; the current
one is FF[4].
Structure
An SGF file is text holding one or more game trees. A game tree is enclosed in
parentheses and holds a sequence of nodes, followed by any child trees for variations.
Each node starts with a semicolon and carries properties: an upper-case identifier
followed by one or more values in square brackets. The GM property gives
the game, where 1 means Go.
(;FF[4]GM[1];B[pd];W[dp])
Not described
This page is a first outline. The properties of the format are not yet described here.
Known, not yet covered
- Reference: the value types, the general properties and the properties of each game, which the FF[4] specification lists.
- Viewer: the site has no viewer for this format.
Links
Software
- Sabaki – Go board and SGF editor (cross-platform)
Reference
- SGF home page – the specifications and their history
- SGF FF[4] basic definition – grammar and value types