gamai 0.1.39

Modular task switching library suitable for Game AI and Robotics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use gamai::prelude::*;
use petgraph::graph::DiGraph;
use sweet::*;

#[sweet_test]
pub fn works() -> Result<()> {
	let tree = Tree::new(7).with_leaf(8).with_leaf(89);
	let graph = DiGraph::from_tree(tree.clone());
	expect(graph.into_tree()).to_be(tree)?;

	Ok(())
}