I was afraid you could be one of those people who went to an AI course in college and now believe that training a neural network is a standard solution for making enemies attack the player in a video game.
But when this is for normal game AI, then you should either use the programming language the rest of your game is written in, or go all the way and build a GUI tool for building behavior trees, GOAP graphs or curves for utility AI.
The middle ground of embedding a scripting language just for scripting AI rarely seems to have the same benefit/cost compared to those two solutions.
If by AI you mean neural networks then Python is the way. It's got tensorflow and pytorch which are the biggest libraries for this. Also, no worries about performance, tensorflow is implemented in C++ and just exposed to python.
6 comments
Are you talking about the computer science definition of AI or the game development definition of AI? Because those are very different fields.
This is an R/ game development subreddit, what do you think
I was afraid you could be one of those people who went to an AI course in college and now believe that training a neural network is a standard solution for making enemies attack the player in a video game.
But when this is for normal game AI, then you should either use the programming language the rest of your game is written in, or go all the way and build a GUI tool for building behavior trees, GOAP graphs or curves for utility AI.
The middle ground of embedding a scripting language just for scripting AI rarely seems to have the same benefit/cost compared to those two solutions.
C++
If by AI you mean neural networks then Python is the way. It's got tensorflow and pytorch which are the biggest libraries for this. Also, no worries about performance, tensorflow is implemented in C++ and just exposed to python.