To answer your question:
Node passed as
pNode should be used; you
don't need to create a new one.
Board passed as
pBoard should be used;
you don't need to create a new one.
- A leaf node has a null
mBoard. Alternatively, it could
mBoard that has an empty
The choice depends on information you have not posted about how you want
your trees to bottom out.
You might consider collapsing your structure. It's not clear why you
don't just have a single
Node class (with an
ArrayList<Node> mContent field in place of the mBoard