---
title: "SGF文件解读"
author: "wanfan2008"
date: "2009-01-01T19:47:33Z"
tags: ["C", "C#", "C++", "Go", "游戏"]
slug: "sgf"
draft: false
lastmod: "2009-01-01T19:48:32Z"
id: 308786
url: "https://wanfan2008.iteye.com/blog/308786"
---

sgf文件是Smart Game Format的简写，绝大多数棋谱文件都是用sgf格式的文件还现在几乎是个中对弈软件和大谱程序都支持sgf格式！可以说是棋谱文件事实上的标准，清晰 小巧易用方便，深受棋友的喜欢,不少汽油对sgf文件中标志不是很明白，最近翻译了一篇关于sgf文件文章，与大家分享，由于本人英文水平有限，有些专业术语很难翻译准确，附上原文，看不明白的地方自己还是直接看原文。 
AB: Add Black: locations of Black stones to be placed on the board prior to the first move 
AB:添加黑子：在下子之前放在棋盘上的黑子 
AW: Add White: locations of White stones to be placed on the board prior to the first move. 
AW:添加白子： 在下子之前放在棋盘上的白子 
AN: Annotations: name of the person commenting the game 
AN:注解：评论棋局的人的名字 
B: a move by Black at the location specified by the property value. 
B 一个移动的黑子，由一个指定的属性值定位（用横纵坐标表示） 
W: a move by White at the location specified by the property value. 
W: 一个移动的白子，由一个指定的属性值定位（用横纵坐标表示） 
C: Comment: a comment. 
C:注解,评论(一般针对) 
FF: File format: version of SGF specification governing this SGF file. 
FF：文件格式：sgf规范的版本管理操纵这个sgf文件 
GM: Game: type of game represented by this SGF file. A property value of 1 refers to Go 
GM：游戏: 游戏类型表示这个sgf文件(如属性值为1表示19路盘) 
OT: Overtime: overtime system. 
OT: 超时:系统超时 
PB: Black Name: name of the black player. 
PB:黑方的名字 
WR: White Rank: rank of the White player 
WR：白方的等级(若1k,1d，9p等) 
PC: Place: place where the game was played (e.g.: Tokyo). 
PC：地方:比赛所在的位置(如:东京) 
HA: Handicap: the number of handicap stones given to Black. Placment of the handicap stones are set using the AB property 
HA:障碍: 预先放置在棋盘上的黑子，放置的位置使用AB属性进行标示（即让子棋中事先放在盘上的棋子） 
KM: Komi: komi. 
KM:目数 
RE: Result: result, usually in the format "B+R" (Black wins by resign) or "B+3.5" (black wins by 3.5 moku). 
RE:结果:通常使用格式"B+R"(黑中盘胜)或者 "B+3.5'(黑胜3.5目) 
RU: Rules: ruleset (e.g.: Japanese) 
RU:规则:规则集(如日本规则) 
SZ: Size: size of the board, non square boards are supported 
SZ:尺寸:棋盘尺寸,非正方型板支持 
US: User: name of the person who created the SGF file. 
US:用户:该sgf文件的创建者

