| www.delorie.com/gnu/docs/gnugo/gnugo_82.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
SGFNode *sgfCreateHeaderNode(int boardsize, float komi)
Create a new SGF node with the two propertiesSZ(size) andKM(komi). More properties, likeHA(handicap), can later be added to it.The idea with this node is to store the game info and to use as a root node for the game.
SGFNode *readsgffile(const char *filename)
Read an SGF file and return the resulting tree.
void sgf_write_header(SGFNode *root, int overwrite, int
seed, float komi)
Write random seed, date, ruleset, komi and SGF file version to the header noderoot. Ifoverwriteis non-zero, it overwrites the values in the node, otherwise it just writes those that are missing.Ruleset is always set to "Japanese", date is set to the current date.
int writesgf(SGFNode *root, const char *filename)
Write the tree starting inrootto the filefilename. Iffilenameis-, the tree is written tostdout. Returns 1 if successful, otherwise returns 0.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |