sequential tree with many children, one of which with sequential children #2

Open
cappelaere opened this Issue Nov 8, 2012 · 2 comments

Projects

None yet

2 participants

@cappelaere

I have a tree with a sequential strategy. It has several children. The second child has many children with a sequential strategy as well. Problem is that the sequence from second child completes but then returns this.nearestRunnableAncestor() which seems to take me back to the top (and not the next state)... so it keeps executing the same sequence over and over...
Does this make sense?
Thanks,
Pat.

@cappelaere

my solution is to have "sequential" return (if possible) the sibling of the nearestRunnableAncestor... but it is an odd problem to have... just wondering...
Thanks for great library.
Pat.

@maryrosecook

Hiya. Thanks a lot for writing in. Sorry for the delayed reply - I've only just noticed these notifications.

I'm glad you solved your problem. It's possible that none of the second child's siblings could run (their "can" functions were returning false{, so control was just going back to the root node. If that was not the problem, let me know.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment