xyz Yeah, I wasn't building this for the context of my game, it was just to generate a random tree. However, I did realize that error where I was appending them to the stack, but never actually attaching them to the MoveTree class. That was an oversight on my part.
I have also been focusing on the data structure, though just using Godot. I used my research on Python data structures as the basis.
I did eventually change it to have this.
current.append(MoveTree.new(current.number + 1)
stack.append(current.left_child)
I did this for both the left and right child as well as the center child. In order to actually connect the children to the previous node and thus create the hierarchy.
Is there a reason you recommend python to do this in other than just trying to remove my thinking from the practical application to my specific game context? Also, there are multiple types of trees, would you recommend I build each type of tree, or do you think understanding and being able to build one type generally equates to being able to build other types?
Thank you again for all your help, and direction, I really do appreciate and it has helped my understanding grow immensely.