An open API service indexing awesome lists of open source software.

https://github.com/tbillington/greenery

Simple behavior trees
https://github.com/tbillington/greenery

ai behavior-tree bt deno typescript

Last synced: 6 months ago
JSON representation

Simple behavior trees

Awesome Lists containing this project

README

          

# Greenery 🌳

Simple behavior trees.

```javascript
const tree = select(
endSimulation,
sequence(
moveInRange,
select(
shootEnemy,
reload
)
)
)

const state = {
player: { x: 5, bullets: 3 },
enemy: { x: 10, health: 10 },
done: false
}

while (!state.done) {
tree(state)
}
```