In Game Programming Language
So I have programmed a Neural Network class for the player to create their own Ais and train them etc... But what I want to do now is to allow the user to enter their inputs and outputs within these networks, so is there any way to program within Unity and have it run? --Just a note I am writing in c#--
Answer by ErikHallmarkDev · Jan 31, 2017 at 03:48 AM
The fastest solution I can think of is to include a JavaScript engine in your project, so that players can write JavaScript. There are a number of good ones that run on .NET, but I can personally attest that Jurassic is very good. (It takes some effort to get working in Unity, but the Unify community has already done that work for you here)
Other honorable mentions include Jint, Clearscript, and V8DotNet.
What language would you like them to program in? There is no C# compiler in runtime Unity, but you are free to provide your own: Lisp, Lua, Forth if you're looking for something small and light.