end ( ) → ¶įollows the main variation to the end and returns the last node. More if the game was started from a custom position. Usually this is equal to the number of parent nodes, but it may be Returns the number of half-moves up to this node, as indicated byįullmove number and turn of the position. It’s a copy, so modifying the board will not alter the game. Variant) unless the FEN header tag is set. Gets a board with the position of the node.įor the root node, this is the default starting position (for the That occur before any moves are assigned to the root node. variations : List ¶Ī comment that goes behind the move leading to this node. The move leading to this node or None if this is the root node of the The parent node or None if this is the root node of the game. GameNode ( *, comment : str = '' ) ¶ parent : Optional ¶ ( Game, also holding game headers) and many childīoth extend GameNode. Games are represented as a tree of moves.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |