| www.delorie.com/gnu/docs/gnugo/gnugo_83.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Sometimes we just want to record an ongoing game or something similarly
simple and not do any sofisticated tree manipulation. In that case we
can use the simplified interface provided by SGFTree below.
typedef struct SGFTree_t {
SGFNode *root;
SGFNode *lastnode;
} SGFTree;
|
An SGFTree contains a pointer to the root node of an SGF tree and
a pointer to the node that we last accessed. Most of the time this will
be the last move of an ongoing game.
Most of the functions which manipulate an SGFTree work exactly
like their SGFNode counterparts, except that they work on the
current node of the tree.
All the functions below that take arguments tree and node
will work on:
node if non-NULL
tree->lastnode if non-NULL
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |