LifeAI - AI decision-making

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Ortimh
Citizen
Posts: 90
Joined: Tue Sep 09, 2014 5:07 am
Location: Indonesia

LifeAI - AI decision-making

Post by Ortimh » Thu Sep 01, 2016 11:09 am

Hello, guys!

I brought you my very first Lua binding for LifeAI, an open-source C++ library for Artificial Intelligence decision-making.
LifeAI is an open source C++ library for Artificial Intelligence decision-making. It can be integrated in video games, robotics, or anything that requires simulated intelligence.

Entities and actions are created in C++ and text files with LifeAI's syntax. Entities have characteristics that describe them called "stats". They consider their value of the stats and how much they are modified to assess the "pros" and "cons" of an action. They also consider their value of other entities involved in the action and how it affects them. They can then determine an overall value for performing the action.

As stats in the simulation change, LifeAI updates the best action options for the entities. The actions can then be implemented as needed in a simulation.

Demonstrations of LifeAI can be viewed here. Code for a simple test application is included with the LifeAI source code.
Same rules of Fenrir's ImGui applies to this binding too like pointers, etc. There're function overloads in C++ version, so to make the functions in Lua I decided to make numbered functions according to their order in the lai_wrap_cpp.h (e.g. int laiMake( int type, int num0 = LAI_NULL, int num1 = LAI_NULL, int num2 = LAI_NULL ) to lai.Make2). I only make binary for Win32 x86. Currently I'm focusing on recreating the demo. It may take awhile.

You can find the source code and releases in the repository. Any feedback is welcome.

User avatar
Viomi
Prole
Posts: 11
Joined: Thu Mar 03, 2016 5:13 am

Re: LifeAI - AI decision-making

Post by Viomi » Thu Sep 22, 2016 5:46 am

Hey, this is pretty cool!

I'll be sure to keep an eye on this project.

User avatar
Jack5500
Party member
Posts: 149
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: LifeAI - AI decision-making

Post by Jack5500 » Thu Sep 22, 2016 1:52 pm

Great, are you planning to implement a full example?

User avatar
Ortimh
Citizen
Posts: 90
Joined: Tue Sep 09, 2014 5:07 am
Location: Indonesia

Re: LifeAI - AI decision-making

Post by Ortimh » Fri Sep 23, 2016 9:02 am

Viomi, thanks. I'm trying to implement overloads in Lua so the binding doesn't have to create useless more functions (lai.Make2 etc.) but it doesn't work pretty smoothly because yet I don't know how to do it.

Jack5500, yes and no. I really do hope I can give it a full example but due to a lot of work that's needed to be done (school, as I'm 15) I can't promise that. Thanks by the way.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests