项目作者: Tw1ddle

项目描述 :
:grinning: Utility-based AI library written in Haxe
高级语言: Haxe
项目地址: git://github.com/Tw1ddle/needs-ai-lib.git
创建时间: 2018-02-13T18:52:39Z
项目社区:https://github.com/Tw1ddle/needs-ai-lib

开源协议:MIT License

下载


Project logo

License

Needs AI is a utility-based AI library written in Haxe.

Note: this library is unfinished and isn’t much use for anything, since I shelved the project before integrating it with a real game. It might be a starting point for anyone else interested in creating their own utility-based AI though.

Run the demo here. Read the documentation here.

Features

  • Response curves. Linear, polynomial, sine, normal, logit, logistic and more.
  • Customize your own response curves, consideration/action/action set scoring strategies.

Usage

See the demo code for a usage example. The overall design is as follows: agents take cues from their ‘’Brain’’s, whose ‘’Reasoners’’
evaluate their ‘’ActionSets’’, in order to select a suitable ‘’Action’’ for the current situation, by weighing up ‘’Considerations’’ based on ‘’Inputs’’ that reflect the state of the game world.

Class diagram of Needs AI package

References

Some links that provide background about utility-based AI:

Notes

  • This haxelib supports all Haxe targets.
  • If you have any questions or suggestions then get in touch or open an issue.