Behavior tree library for ruby

Behavior trees are a way of specifying an algorithm in terms of a tree. This makes an AI agent’s algorithm readable, composable, and debuggable.

For more information, see: aigamedev.com/open/articles/bt-overview/ aigamedev.com/open/articles/behavior-trees-part1/ nakkaya.com/2010/06/29/alter-ego-a-reactive-ai-library/

To try it out, ‘gem install behaviortree’

As an example of how to use this library, I’ve written a solution to the beginning level of rubywarrior (github.com/ryanb/ruby-warrior).