Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Tw1ddle/needs-ai-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.