An SGFGame contains an SGFTree which houses every node (that is, a leaf) of the game. Leaves contain information such as moves, markup, and comments.
All tokens related to information about the game are also contained by this class. This makes the tokens easy to find and use (rather than making them part of the first leaf of the first sub-tree of the game).
Eventually this class will wrap the functionality for saving an SGF game, so the idea of allowing anyone add InfoTokens is valid (rather than keeping it protected in the family, so to speak).
|
|