Set up a tree container that allows for some certain traversals #79

Merged
savanni merged 6 commits from tree-traversals into main 2023-10-25 03:13:39 +00:00
Owner

My motivation for this is to have a way to represent an SGF game tree and convert it from raw SGF to a different representation.

Turns out that it is very difficult to do non-recursively. Ultimately I don't think this is possible without using RefCells, and that adds a lot of complication to the SGF nodes that I did not want to deal with. So the tree will allow me to externalize the SGF tree structure and create common algorithms for operating on that structure.

My motivation for this is to have a way to represent an SGF game tree and convert it from raw SGF to a different representation. Turns out that it is very difficult to do non-recursively. Ultimately I don't think this is possible without using RefCells, and that adds a lot of complication to the SGF nodes that I did not want to deal with. So the tree will allow me to externalize the SGF tree structure and create common algorithms for operating on that structure.
savanni added 6 commits 2023-10-25 03:13:12 +00:00
savanni merged commit c2e34db79c into main 2023-10-25 03:13:39 +00:00
savanni deleted branch tree-traversals 2023-10-25 03:13:39 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: savanni/monorepo#79
No description provided.