Hello,
i am Neural Network apprentice, i am learning that on university.
Currently i am developing a round based RPG,
and got stuck in decision making as you can read in my previous post due performance issues.
So i would love to give a solution with ANN a try...
Example Situation
Lets assume a simple Situation 1 vs 1:
1 Healer (AI) vs 1 Tank (enemy)
on your turn, the Healer can attack, or he can heal.
that turns out into 4 possible actions you can do:
a) Attack yourself (=healer)
b) Attack the Tank
c) Heal yourself
d) Heal the Tank
So decisions b) and c) are good ones,
and a) and d) are stupid ones.
Scoring
i have written a scoring algorithm that determines on how good your actual state on the battlefield is, depending on current health and so on.
bad situation < 0 < good situation.
I am interested in a near future situation: "How does my decision now affect the resulst within x (= 5?) turns ?"
I can do a calculation over a decision tree and calculate a score for each path in the decision tree.
this works, and i get good results. The only problem is, that i would need a Earthsimulator2 machine in order to get the Scores within an acceptable time....
The Network
So heres the idea of the neural networks come into play:
If i could feed a neural network with the data of the current situation (current health, skills, affected states like poisoned, stunned aso.) and the planned action as input value,
and i want to get a forecast of the input after x (= 5?) rounds as output,
The Training
I train the network with example situations.
I calculate the outgoings of an action within x rounds, and take the average of them.
i use this average value for training the network for the same input like in my calculation.
Execution
In execution phase, i know the 4 possible actions, and ask the network 4 times to give a prediction,
then i choose the action that has the best value.
Type of Networks
I am really new to ANN, and currently have no idea, what kind of network suits best to solve that problem.
What do you think ? i this goal possible to achive, or is this completly nonsense ?
thanks for reading, Tom