Buy GNU books!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
SGFNode *sgfCreateHeaderNode(int boardsize, float komi)
Create a new SGF node with the two properties
KM(komi). More properties, like
HA(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 node
overwriteis 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 in
rootto the file
-, the tree is written to
stdout. Returns 1 if successful, otherwise returns 0.
|webmaster||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|