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
13
use gamai::node::Score;
use sweet::*;

#[sweet_test]
pub fn works() -> Result<()> {
	expect(Score::Fail).to_be(Score::Fail)?;
	expect(Score::Fail).to_be_less_than(Score::Pass)?;
	expect(Score::Fail).to_be_less_than(Score::Weight(0.))?;
	expect(Score::Weight(0.)).to_be_less_than(Score::Pass)?;
	expect(Score::Weight(0.)).to_be_less_than(Score::Weight(0.1))?;

	Ok(())
}