Hi everyone,
I wish to implement some genetic algorithm in unity for a fighting game. I was wondering how to proceed given that I want to keep track of what’s going on and the ongoing tuning of the breed.
Thanks !
Mehdi
Hi everyone,
I wish to implement some genetic algorithm in unity for a fighting game. I was wondering how to proceed given that I want to keep track of what’s going on and the ongoing tuning of the breed.
Thanks !
Mehdi
You’re going to need to be a lot more specific and detailed.
what do you want to keep track of?
what do you want to tweak?
etc.
posting completely open ended questions isn’t really something the scripting forum is for. Perhaps you want the Game Design subforum instead?
The post above is correct, but check out this article. As the author states, the best candidate for a GA is one in which you know the solution, but solving for that solution is very difficult. I question whether your intent is a good fit…
Hi everybody,
Thanks for the answer, indeed my question was a bit open. I’ll think it again and try to be more precise.
Thanks again !
Unless you are drawing in analytics from thousands of players, genetic algorithms suck for online tuning.
You could use an Enum to decide which AnimationState it does using a random number and make enum send a trigger back to an animation control once you’ve drawn the enum amount using a for(loop). Then do something like if(randomNumber == 1) enum[1].trigger = true;
Just an idea ![]()
EDIT: you can also use enums other ways, unity has good reference for them.